This commit is contained in:
xy
2024-11-06 15:26:26 +08:00
parent de8242fbf0
commit fc73879c95
2 changed files with 2 additions and 7 deletions

View File

@@ -84,8 +84,8 @@ public class AskDeviceDataServiceImpl implements AskDeviceDataService {
public boolean downloadFile(String nDid, String name, Integer size, String fileCheck) {
boolean result = true;
try {
redisUtil.saveByKeyWithExpire("fileDowning:"+nDid,"fileDowning",120L);
redisUtil.saveByKeyWithExpire("fileCheck"+nDid+name,fileCheck,120L);
redisUtil.saveByKeyWithExpire("fileDowning:"+nDid,"fileDowning",300L);
redisUtil.saveByKey("fileCheck"+nDid+name,fileCheck);
Object object = getDeviceMid(nDid);
if (!Objects.isNull(object)) {
mid = (Integer) object;