tplink-设备在线状态修改

This commit is contained in:
曹磊 2025-12-17 15:12:09 +08:00
parent 4c0bb2e677
commit b84fdc155d
1 changed files with 2 additions and 1 deletions

View File

@ -286,7 +286,7 @@ public class CameraInfoServiceImpl extends ServiceImpl<CameraInfoMapper, CameraI
}catch (Exception e){ }catch (Exception e){
errMsg += errorCode; errMsg += errorCode;
} }
log.info("getImageCommon:{}",errMsg); log.info("syncProjectIpcDevice:{}",errMsg);
return Result.error(errMsg); return Result.error(errMsg);
} }
} }
@ -411,6 +411,7 @@ public class CameraInfoServiceImpl extends ServiceImpl<CameraInfoMapper, CameraI
if("0".equals(errorCode)){ if("0".equals(errorCode)){
JSONObject image = (JSONObject)responseData.get("image"); JSONObject image = (JSONObject)responseData.get("image");
JSONObject data = (JSONObject)image.get(type); JSONObject data = (JSONObject)image.get(type);
updateDeviceStatus(id,errorCode);
return Result.OK(data); return Result.OK(data);
}else{ }else{
String errorMsg = ""; String errorMsg = "";