App消息推送调整

This commit is contained in:
xy
2026-04-07 09:15:55 +08:00
parent d20c869bad
commit 292e8b58a5
4 changed files with 109 additions and 102 deletions

View File

@@ -87,6 +87,7 @@ public class AskDeviceDataServiceImpl implements AskDeviceDataService {
public boolean downloadFile(String nDid, String name, Integer size, String fileCheck) {
boolean result = true;
try {
redisUtil.saveByKeyWithExpire("isWeb:"+nDid,name,30L);
redisUtil.saveByKeyWithExpire("fileDowning:"+nDid,"fileDowning",300L);
redisUtil.saveByKey("fileCheck"+nDid+name,fileCheck);
Object object = getDeviceMid(nDid);
@@ -104,6 +105,7 @@ public class AskDeviceDataServiceImpl implements AskDeviceDataService {
redisUtil.delete("fileDowning:"+nDid);
redisUtil.delete("fileCheck"+nDid+name);
redisUtil.delete("fileDownUserId"+nDid+name);
redisUtil.deleteKeysByString("isWeb:"+ nDid);
throw new BusinessException(AlgorithmResponseEnum.FILE_DOWNLOAD_ERROR);
}
return result;