This commit is contained in:
xy
2024-09-17 11:11:17 +08:00
parent c58f45019a
commit 0fed84b8e0
2 changed files with 3 additions and 1 deletions

View File

@@ -528,6 +528,8 @@ public class CsDeviceServiceImpl implements ICsDeviceService {
//发起接入 //发起接入
reqAndResParam.setType(Integer.parseInt(TypeEnum.TYPE_5.getCode())); reqAndResParam.setType(Integer.parseInt(TypeEnum.TYPE_5.getCode()));
publisher.send("/Pfm/DevCmd/"+version+"/"+nDid, new Gson().toJson(reqAndResParam),1,false); publisher.send("/Pfm/DevCmd/"+version+"/"+nDid, new Gson().toJson(reqAndResParam),1,false);
//录波任务倒计时
redisUtil.saveByKeyWithExpire("startFile",null,120L);
result = true; result = true;
} }
} catch (InterruptedException e) { } catch (InterruptedException e) {

View File

@@ -21,6 +21,6 @@ public class InitEventFiles implements CommandLineRunner {
@Override @Override
public void run(String... args) { public void run(String... args) {
redisUtil.saveByKeyWithExpire("startFile",null,30L); redisUtil.saveByKeyWithExpire("startFile",null,120L);
} }
} }