Commit 5791e74e authored by huangjiamin's avatar huangjiamin

购买失败时长缩短到2小时

parent a0be941e
......@@ -183,7 +183,7 @@ public class BrowserTask {
* 购买后,长时间未能成功的ip资源视为购买失败。
* 购买时长超过20分钟的ip资源释放,并将购买花销退回账户余额。
*/
if (result == false && (ipResource.getPurchasedTime() < Instant.now().minusSeconds(7200).toEpochMilli())) {
if (result == false && (ipResource.getPurchasedTime() < Instant.now().minusSeconds(1200).toEpochMilli())) {
log.info(logs + "ip resource purchase failure, {}", ipResource);
IpChargeRequestDto ipChargeRequestDto = buildIpChargeRequestDto(ipResource, 3, 0);
accountService.chargeByMoney(ipResource.getOwner(), -ipResource.getPrice(), ipChargeRequestDto);
......
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