|
@@ -1,7 +1,10 @@
|
|
|
package cn.com.ctop.job.kuaishou.handler;
|
|
|
|
|
|
+import cn.com.ctop.alarm.modules.entity.RuleAccountTemplate;
|
|
|
import cn.com.ctop.common.module.entity.CtopOauthToken;
|
|
|
import cn.com.ctop.common.module.service.ICtopOauthTokenService;
|
|
|
+import cn.com.ctop.common.module.utils.Check;
|
|
|
+import cn.com.ctop.common.module.utils.HttpUtils;
|
|
|
import cn.com.ctop.common.module.utils.HttpUtils2;
|
|
|
import cn.com.ctop.kuaishou.modules.batch.entity.KuaiShouGroup;
|
|
|
import cn.com.ctop.kuaishou.modules.batch.service.IKuaiShouGroupService;
|
|
@@ -82,11 +85,16 @@ public class KuaishouDailyAudienceReportJob {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
+ String URLPREFIX = "http://api.tjyourong.com.cn/jeecg-boot/audienceReport/getOneAudienceDataNew?accountId=";
|
|
|
@XxlJob("kuaishouDailyTaoTeAudienceReportJob")
|
|
|
public void getTaoTeAudienceData() throws Exception {
|
|
|
- String url = "http://api.tjyourong.com.cn/jeecg-boot/test/getAudienceDataNew";
|
|
|
- HttpUtils2.httpGet(url, null, null);
|
|
|
+ List<CtopOauthToken> tokens = tokenService.getByProjectId(458L); //淘特项目
|
|
|
+ if (!Check.isNull(tokens)) {
|
|
|
+ tokens.forEach(token -> {
|
|
|
+ String url = URLPREFIX + token.getAccountId();
|
|
|
+ HttpUtils.httpGet(url, null, null);
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@XxlJob("kuaishouDailyTaoTeAudienceReportAggregationJob")
|