This commit is contained in:
caozehui
2025-03-08 14:26:01 +08:00
parent 6cca428d62
commit 34d4321290
3 changed files with 6 additions and 1 deletions

View File

@@ -100,7 +100,9 @@ public class SocketSourceResponseService {
if (ObjectUtil.isNotNull(dictDataEnumByCode)) { if (ObjectUtil.isNotNull(dictDataEnumByCode)) {
switch (dictDataEnumByCode) { switch (dictDataEnumByCode) {
case SUCCESS: case SUCCESS:
if(param.getSendWebMsg()){
WebServiceManager.sendMsg(param.getUserPageId(), JSON.toJSONString(socketDataMsg)); WebServiceManager.sendMsg(param.getUserPageId(), JSON.toJSONString(socketDataMsg));
}
System.out.println("模拟检测-源初始化成功"); System.out.println("模拟检测-源初始化成功");
break; break;
case UNPROCESSED_BUSINESS: case UNPROCESSED_BUSINESS:

View File

@@ -62,4 +62,5 @@ public class PreDetectionParam {
*/ */
private String code; private String code;
private Boolean sendWebMsg;
} }

View File

@@ -224,6 +224,7 @@ public class PreDetectionServiceImpl implements PreDetectionService {
PreDetectionParam preDetectionParam = new PreDetectionParam(); PreDetectionParam preDetectionParam = new PreDetectionParam();
preDetectionParam.setSourceId(param.getSourceId()); preDetectionParam.setSourceId(param.getSourceId());
preDetectionParam.setUserPageId(param.getUserPageId()); preDetectionParam.setUserPageId(param.getUserPageId());
preDetectionParam.setSendWebMsg(true);
specialDealSimulate(preDetectionParam); specialDealSimulate(preDetectionParam);
@@ -250,6 +251,7 @@ public class PreDetectionServiceImpl implements PreDetectionService {
PreDetectionParam preDetectionParam = new PreDetectionParam(); PreDetectionParam preDetectionParam = new PreDetectionParam();
preDetectionParam.setSourceId(param.getSourceId()); preDetectionParam.setSourceId(param.getSourceId());
preDetectionParam.setUserPageId(param.getUserPageId()); preDetectionParam.setUserPageId(param.getUserPageId());
preDetectionParam.setSendWebMsg(false);
this.sendYtxSocketSimulate(preDetectionParam); this.sendYtxSocketSimulate(preDetectionParam);
} }
//组装源控制脚本 //组装源控制脚本