|
@@ -87,7 +87,7 @@ public class TradeSparqController {
|
|
|
"TradeSparq API返回Redis缓存数据,uid = {}, path = {}, request body = {}",
|
|
|
uid,
|
|
|
apiPath,
|
|
|
- requestBody);
|
|
|
+ requestBody);:
|
|
|
return Result.ok(cachedResult);
|
|
|
}
|
|
|
|
|
@@ -128,8 +128,8 @@ public class TradeSparqController {
|
|
|
resourceQuotaService.consumeCustomsDataQuota(uid);
|
|
|
}
|
|
|
|
|
|
- // 3.2 缓存到Redis,TTL为60分钟
|
|
|
- adwebRedisUtil.set(redisKey, responseEntity.getBody(), 60 * 60);
|
|
|
+ // 3.2 缓存到Redis,TTL为3小时
|
|
|
+ adwebRedisUtil.set(redisKey, responseEntity.getBody(), 60 * 60 * 3);
|
|
|
|
|
|
return Result.ok(responseEntity.getBody());
|
|
|
} catch (RestClientResponseException e) {
|