|
@@ -100,7 +100,7 @@ public class OrderServiceImpl implements OrderService {
|
|
long timeMillis = System.currentTimeMillis();
|
|
long timeMillis = System.currentTimeMillis();
|
|
String token = String.valueOf(id) + timeMillis;
|
|
String token = String.valueOf(id) + timeMillis;
|
|
String cache = redisKey + token;
|
|
String cache = redisKey + token;
|
|
- redisHelper.cacheValue(cache, id, 60);
|
|
|
|
|
|
+ redisHelper.cacheValue(cache, id, 600);
|
|
return ResultContent.buildContent(token);
|
|
return ResultContent.buildContent(token);
|
|
case USED:
|
|
case USED:
|
|
return ResultContent.build(ResultState.Fail, ErrorCode.ORDER_USED.getMess());
|
|
return ResultContent.build(ResultState.Fail, ErrorCode.ORDER_USED.getMess());
|