1、增加缓存指令下发功能

This commit is contained in:
weidong 2024-04-08 12:01:36 +08:00
parent af3d394b39
commit d733f361af

View File

@ -128,6 +128,7 @@ public class APIController extends BasicController{
if(cacheCmd != null){ if(cacheCmd != null){
rtcmClient.config(deviceId, cacheCmd.getCmd()); rtcmClient.config(deviceId, cacheCmd.getCmd());
cacheCmd.setSyn(true); cacheCmd.setSyn(true);
cacheCmd.setUpdatetime(LocalDateTime.now());
cacheCmdMapper.updateById(cacheCmd); cacheCmdMapper.updateById(cacheCmd);
// 保存 // 保存
saveMsg(deviceId, tenantId,cacheCmd.getMsgtype(), cacheCmd.getCmd(), true); saveMsg(deviceId, tenantId,cacheCmd.getMsgtype(), cacheCmd.getCmd(), true);