修改解析协议
This commit is contained in:
@@ -149,7 +149,7 @@ public class TSLCacheImpl implements ITSLCache {
|
||||
* value:PropertyDto
|
||||
* </p>
|
||||
*/
|
||||
public Map<String, ThingsModelValueItem> getCacheThMapByProductId(Long productId) {
|
||||
public Map<String, ThingsModelValueItem>getCacheThMapByProductId(Long productId) {
|
||||
assert !Objects.isNull(productId) : "产品id为空";
|
||||
// redis获取物模型
|
||||
Map<String, Object> map = redisCache.getCacheMap(RedisKeyBuilder.buildTSLCacheKey(productId));
|
||||
|
||||
@@ -1461,6 +1461,7 @@ public class DeviceServiceImpl implements IDeviceService {
|
||||
}
|
||||
try {
|
||||
String rspStr = HttpUtils.sendGet(IP_URL, "ip=" + ip + "&json=true", Constants.GBK);
|
||||
rspStr="127.0.0.1";
|
||||
if (!StringUtils.isEmpty(rspStr)) {
|
||||
JSONObject obj = JSONObject.parseObject(rspStr);
|
||||
device.setNetworkAddress(obj.getString("addr"));
|
||||
|
||||
Reference in New Issue
Block a user