记得上下班打卡 | git大法好,push需谨慎

Commit 14cd2a5b authored by 张国柄's avatar 张国柄

~api:藏品转赠过期批处理调整延后30秒处理;

parent f3b04027
...@@ -27,7 +27,7 @@ public class GoblinUserDigitalArtworkTaskController { ...@@ -27,7 +27,7 @@ public class GoblinUserDigitalArtworkTaskController {
/** /**
* 藏品转赠过期批处理 * 藏品转赠过期批处理
* *
* @param expiredSeconds 过期时间,单位秒,不传默认24小时即86400秒(这里统一延后10秒处理) * @param expiredSeconds 过期时间,单位秒,不传默认24小时即86400秒(这里统一延后30秒处理)
* @return ResponseDto<String> * @return ResponseDto<String>
*/ */
@PutMapping("transfer_expire") @PutMapping("transfer_expire")
...@@ -36,9 +36,9 @@ public class GoblinUserDigitalArtworkTaskController { ...@@ -36,9 +36,9 @@ public class GoblinUserDigitalArtworkTaskController {
if (StringUtils.isNotBlank(expiredSeconds)) { if (StringUtils.isNotBlank(expiredSeconds)) {
try { try {
String decrypt = DESUtils.DES().decrypt(expiredSeconds); String decrypt = DESUtils.DES().decrypt(expiredSeconds);
expiredSecondsIntVal = Integer.parseInt(decrypt) + 10; expiredSecondsIntVal = Integer.parseInt(decrypt) + 30;
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
expiredSecondsIntVal = 86400 + 10; expiredSecondsIntVal = 86400 + 30;
} catch (Exception e) { } catch (Exception e) {
ErrorCode paramError = ErrorCode.HTTP_PARAM_ERROR; ErrorCode paramError = ErrorCode.HTTP_PARAM_ERROR;
return ResponseDto.failure(paramError.getCode(), paramError.getMessage()); return ResponseDto.failure(paramError.getCode(), paramError.getMessage());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment