|
@@ -383,9 +383,11 @@ public class ChoiceStockServiceImpl implements ChoiceStockService {
|
|
|
// HttpRequest.httpPostWithjson(url, JSON.toJSONString(subList));
|
|
|
// if(BuyAndSellUtils.isTransState()){
|
|
|
try {
|
|
|
- final String[] webArr = ZXOptions.get("ws.key").split(";");//websocket key
|
|
|
- for (int j = 0; j < webArr.length; j++) {
|
|
|
- new WebSocketController().sendSysMsg(webArr[j],JSON.toJSONString(subRedisList));
|
|
|
+ if(ZXOptions.get("ws.key")!=null){
|
|
|
+ final String[] webArr = ZXOptions.get("ws.key").split(";");//websocket key
|
|
|
+ for (int j = 0; j < webArr.length; j++) {
|
|
|
+ new WebSocketController().sendSysMsg(webArr[j],JSON.toJSONString(subRedisList));
|
|
|
+ }
|
|
|
}
|
|
|
// HttpRequest.httpPostWithjson(urlRedis, JSON.toJSONString(subRedisList));
|
|
|
}catch (Exception e){
|
|
@@ -407,9 +409,11 @@ public class ChoiceStockServiceImpl implements ChoiceStockService {
|
|
|
// HttpRequest.httpPostWithjson(url, JSON.toJSONString(subList));
|
|
|
// if(BuyAndSellUtils.isTransState()){
|
|
|
try {
|
|
|
- final String[] webArr = ZXOptions.get("ws.key").split(";");//websocket key
|
|
|
- for (int j = 0; j < webArr.length; j++) {
|
|
|
- new WebSocketController().sendSysMsg(webArr[j],JSON.toJSONString(subRedisList));
|
|
|
+ if(ZXOptions.get("ws.key")!=null){
|
|
|
+ final String[] webArr = ZXOptions.get("ws.key").split(";");//websocket key
|
|
|
+ for (int j = 0; j < webArr.length; j++) {
|
|
|
+ new WebSocketController().sendSysMsg(webArr[j],JSON.toJSONString(subRedisList));
|
|
|
+ }
|
|
|
}
|
|
|
// HttpRequest.httpPostWithjson(urlRedis, JSON.toJSONString(subRedisList));
|
|
|
}catch (Exception e){
|
|
@@ -442,9 +446,11 @@ public class ChoiceStockServiceImpl implements ChoiceStockService {
|
|
|
// HttpRequest.httpPostWithjson(url, JSON.toJSONString(subList));
|
|
|
// if(BuyAndSellUtils.isTransState()){
|
|
|
try {
|
|
|
- final String[] webArr = ZXOptions.get("ws.key").split(";");//websocket key
|
|
|
- for (int j = 0; j < webArr.length; j++) {
|
|
|
- new WebSocketController().sendSysMsg(webArr[j],JSON.toJSONString(subRedisList));
|
|
|
+ if(ZXOptions.get("ws.key")!=null){
|
|
|
+ final String[] webArr = ZXOptions.get("ws.key").split(";");//websocket key
|
|
|
+ for (int j = 0; j < webArr.length; j++) {
|
|
|
+ new WebSocketController().sendSysMsg(webArr[j],JSON.toJSONString(subRedisList));
|
|
|
+ }
|
|
|
}
|
|
|
// HttpRequest.httpPostWithjson(urlRedis, JSON.toJSONString(subRedisList));
|
|
|
}catch (Exception e){
|
|
@@ -467,9 +473,11 @@ public class ChoiceStockServiceImpl implements ChoiceStockService {
|
|
|
// HttpRequest.httpPostWithjson(url, JSON.toJSONString(subList));
|
|
|
// if(BuyAndSellUtils.isTransState()){
|
|
|
try {
|
|
|
- final String[] webArr = ZXOptions.get("ws.key").split(";");//websocket key
|
|
|
- for (int j = 0; j < webArr.length; j++) {
|
|
|
- new WebSocketController().sendSysMsg(webArr[j],JSON.toJSONString(subRedisList));
|
|
|
+ if(ZXOptions.get("ws.key")!=null){
|
|
|
+ final String[] webArr = ZXOptions.get("ws.key").split(";");//websocket key
|
|
|
+ for (int j = 0; j < webArr.length; j++) {
|
|
|
+ new WebSocketController().sendSysMsg(webArr[j],JSON.toJSONString(subRedisList));
|
|
|
+ }
|
|
|
}
|
|
|
// HttpRequest.httpPostWithjson(urlRedis, JSON.toJSONString(subRedisList));
|
|
|
}catch (Exception e){
|
|
@@ -661,9 +669,11 @@ public class ChoiceStockServiceImpl implements ChoiceStockService {
|
|
|
// HttpRequest.httpPostWithjson(url, JSON.toJSONString(subList));
|
|
|
// if(BuyAndSellUtils.isTransState()){
|
|
|
try {
|
|
|
- final String[] webArr = ZXOptions.get("ws.key").split(";");//websocket key
|
|
|
- for (int j = 0; j < webArr.length; j++) {
|
|
|
- new WebSocketController().sendSysMsg(webArr[j],JSON.toJSONString(subRedisList));
|
|
|
+ if(ZXOptions.get("ws.key")!=null){
|
|
|
+ final String[] webArr = ZXOptions.get("ws.key").split(";");//websocket key
|
|
|
+ for (int j = 0; j < webArr.length; j++) {
|
|
|
+ new WebSocketController().sendSysMsg(webArr[j],JSON.toJSONString(subRedisList));
|
|
|
+ }
|
|
|
}
|
|
|
// HttpRequest.httpPostWithjson(urlRedis, JSON.toJSONString(subRedisList));
|
|
|
}catch (Exception e){
|
|
@@ -686,9 +696,11 @@ public class ChoiceStockServiceImpl implements ChoiceStockService {
|
|
|
// HttpRequest.httpPostWithjson(url, JSON.toJSONString(subList));
|
|
|
// if(BuyAndSellUtils.isTransState()){
|
|
|
try {
|
|
|
- final String[] webArr = ZXOptions.get("ws.key").split(";");//websocket key
|
|
|
- for (int j = 0; j < webArr.length; j++) {
|
|
|
- new WebSocketController().sendSysMsg(webArr[j],JSON.toJSONString(subRedisList));
|
|
|
+ if(ZXOptions.get("ws.key")!=null){
|
|
|
+ final String[] webArr = ZXOptions.get("ws.key").split(";");//websocket key
|
|
|
+ for (int j = 0; j < webArr.length; j++) {
|
|
|
+ new WebSocketController().sendSysMsg(webArr[j],JSON.toJSONString(subRedisList));
|
|
|
+ }
|
|
|
}
|
|
|
// HttpRequest.httpPostWithjson(urlRedis, JSON.toJSONString(subRedisList));
|
|
|
}catch (Exception e){
|