Ver código fonte

添加profile设置

syh 5 anos atrás
pai
commit
8ac741a8bd

+ 1 - 1
xxl-job-executor/src/main/java/com/xxl/job/executor/handler/bytedance/BytedanceAdvertiserDailyReportLoadJob.java

@@ -37,7 +37,7 @@ public class BytedanceAdvertiserDailyReportLoadJob {
         Date getDate = DateUtils.addDay(new Date(), -1);
         //1:查询当日数据
         List<CtopOauthToken> tokens = tokenService.getTokenListByType(CtopAdConstant.PLATFORM_TYPE_BYTEDANCE);
-        if (null == tokens || tokens.size() <= 0) {
+        if (null == tokens || tokens.isEmpty()) {
             log.info("定时获取头条数据异常:为获取到可用的token");
             return ReturnT.FAIL;
         }