修改解析协议

This commit is contained in:
chy
2026-04-22 10:13:24 +08:00
parent b06931cf24
commit 14cb86f051
7 changed files with 161 additions and 10 deletions

View File

@@ -149,7 +149,7 @@ public class TSLCacheImpl implements ITSLCache {
* valuePropertyDto
* </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));

View File

@@ -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"));