ソースを参照

潜在bug修改

marxjaw 2 ヶ月 前
コミット
00ae78d014

+ 1 - 1
yt-agent/agent-service/src/main/java/com/ytpm/controller/AgentIndexController.java

@@ -88,7 +88,7 @@ public class AgentIndexController {
     public Result<List<AgentAdGroupStaticsVO>> profit(@ApiIgnore @AuthenticationPrincipal AgentUserInfo userInfo) {
         String redisKey = StrConstant.PLATFORM_AGENT_SUFFIX+StrConstant.PROFIT+userInfo.getUserId();
         //判断无缓存或者缓存小于3分钟时查询最新数据, 保存一小时
-        if(!redisService.hasKey(redisKey) || redisService.getExpire(redisKey) < 3){
+        if(Boolean.FALSE.equals(redisService.hasKey(redisKey)) || redisService.getExpire(redisKey) < 3){
             //查询代理商拥有的app
             List<YtApp> ytApps = appMapper.queryAll(userInfo.getUserId());
             if(CollUtil.isEmpty(ytApps)){

+ 1 - 1
yt-risk/risk-manage/src/main/java/com/ytpm/service/impl/RiskServiceImpl.java

@@ -545,7 +545,7 @@ public class RiskServiceImpl extends ReflectUtil implements RiskService {
         }
         ResultTable<YtDyzAdRecord> table = appFeign.adRecords(dyzUser.getUserId(),AdSourceTypeEnum.rewarded_video.getAdSourceType());
         List<YtDyzAdRecord> records = table.getData();
-        if(records.isEmpty()){
+        if(CollUtil.isEmpty(records)){
             return Result.resultOk(RepMessage.QUERY_SUCCESS);
         }
         //过滤出当日的激励视频数据 按照时间正序排以便筛选每日前几条激励视频