|
@@ -578,7 +578,7 @@ namespace IMCS.CCS.Services
|
|
{
|
|
{
|
|
//下发任务成功后,查询千机质检结果
|
|
//下发任务成功后,查询千机质检结果
|
|
//如果源目标为是机床,才去查询
|
|
//如果源目标为是机床,才去查询
|
|
- if (jList.Contains(req.data.location) && req.data.location=="1")
|
|
|
|
|
|
+ if (jList.Contains(req.data.location) && req.data.qj == "1")
|
|
{
|
|
{
|
|
RequestOpcUaData deviceReq = new RequestOpcUaData();
|
|
RequestOpcUaData deviceReq = new RequestOpcUaData();
|
|
deviceReq.ServerUrl = "opc.tcp://" + jIp[req.data.location] + ":4840";
|
|
deviceReq.ServerUrl = "opc.tcp://" + jIp[req.data.location] + ":4840";
|
|
@@ -597,7 +597,7 @@ namespace IMCS.CCS.Services
|
|
{
|
|
{
|
|
if (responseOpcUaData.values != null)
|
|
if (responseOpcUaData.values != null)
|
|
{
|
|
{
|
|
- await _redisService.Database.StringSetAsync("QJ:" + req.taskNodeId, responseOpcUaData.values[0]);
|
|
|
|
|
|
+ await _redisService.Database.StringSetAsync("QJ:" + req.taskNodeId, "\"" + responseOpcUaData.values[0] + "\"");
|
|
}
|
|
}
|
|
Log.Instance.WriteLogAdd(ActionTypeEnum.RobotAction + "查询千机质检结果===>>" + JsonConvert.SerializeObject(responseOpcUaData),
|
|
Log.Instance.WriteLogAdd(ActionTypeEnum.RobotAction + "查询千机质检结果===>>" + JsonConvert.SerializeObject(responseOpcUaData),
|
|
EnumHelper.GetDescription(ActionTypeEnum.RobotAction));
|
|
EnumHelper.GetDescription(ActionTypeEnum.RobotAction));
|