|
|
@@ -137,11 +137,11 @@ public class AgentIndexController {
|
|
|
if(CollUtil.isEmpty(appList)){
|
|
|
return Result.resultErr(RepMessage.APP_EMPTY);
|
|
|
}
|
|
|
- //设定缓存键值 小于三分钟时更新续存
|
|
|
+ //设定缓存键值
|
|
|
String redisKey = StrConstant.PLATFORM_AGENT_SUFFIX + appId +StrConstant.PROFIT+userInfo.getUserId();
|
|
|
String appIds = appList.stream().map(YtApp::getAppId).distinct().collect(Collectors.joining(","));
|
|
|
//分广告平台,分别统计用户当天、昨日、本月的数据封装并返回
|
|
|
- if(Boolean.FALSE.equals(redisService.hasKey(redisKey)) || redisService.getExpire(redisKey) < 3){
|
|
|
+ if(Boolean.FALSE.equals(redisService.hasKey(redisKey))){
|
|
|
Object o = feignInvoker.invoke(app.getServiceName(),"getAgentProfit", appIds);
|
|
|
List<AgentAdGroupStaticsVO> agentProfit = JSONArray.parseArray(JSON.toJSONString(o), AgentAdGroupStaticsVO.class);
|
|
|
if(CollUtil.isNotEmpty(agentProfit)){
|