|
@@ -886,6 +886,7 @@ namespace IMCS.CCS.Service.Impl
|
|
|
string message = "";
|
|
|
try
|
|
|
{
|
|
|
+ DateTime currentTime = DateTime.Now;
|
|
|
foreach (TaskCallback task in taskList)
|
|
|
{
|
|
|
CcsTagValue tagValueQuery = new CcsTagValue();
|
|
@@ -893,8 +894,9 @@ namespace IMCS.CCS.Service.Impl
|
|
|
//tagValueQuery.Address = task.Address;
|
|
|
List<CcsTagValue> tagValues = _ccsTagValueService.GetList(tagValueQuery).ToList();
|
|
|
CcsTagValue tagValue = tagValues.Where(o => o.Address == task.Address).FirstOrDefault();
|
|
|
- if (tagValue != null && tagValue.TagValue == task.CallbackValue)
|
|
|
- //if(currentTime.Subtract(task.CreateTime).TotalSeconds > 10)
|
|
|
+ //if (tagValue != null && tagValue.TagValue == task.CallbackValue)
|
|
|
+ //临时处理以解决ecs配置问题
|
|
|
+ if(currentTime.Subtract(task.CreateTime).TotalSeconds > 10)
|
|
|
{
|
|
|
CallBackRequestData requestData = new CallBackRequestData();
|
|
|
requestData.taskId = long.Parse(task.TaskId);
|