|
@@ -1285,6 +1285,10 @@ namespace IMCS.CCS.Service.Impl
|
|
|
|
|
|
//缓存取PLC tagvalue 值
|
|
//缓存取PLC tagvalue 值
|
|
List<CcsTagValue> tagValues = new List<CcsTagValue>();
|
|
List<CcsTagValue> tagValues = new List<CcsTagValue>();
|
|
|
|
+ if(device == null)
|
|
|
|
+ {
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
string tag_value_redis_key = imcs_redis_key + device.Ip + ":" + device.ProtocolType;
|
|
string tag_value_redis_key = imcs_redis_key + device.Ip + ":" + device.ProtocolType;
|
|
var tagData = await _redisService.Database.StringGetAsync(tag_value_redis_key);
|
|
var tagData = await _redisService.Database.StringGetAsync(tag_value_redis_key);
|
|
if (tagData.IsNullOrEmpty)
|
|
if (tagData.IsNullOrEmpty)
|