|
|
@@ -1,6 +1,7 @@
|
|
|
package cn.com.ctop.job.bytedance.handler;
|
|
|
|
|
|
import cn.com.ctop.job.bytedance.data.service.BytedanceAppletTokenRefreshService;
|
|
|
+import cn.com.ctop.job.bytedance.data.utils.HttpUtils;
|
|
|
import com.xxl.job.core.context.XxlJobHelper;
|
|
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
@@ -17,6 +18,8 @@ public class BytedanceAppletTokenRefreshJob {
|
|
|
@Autowired
|
|
|
private BytedanceAppletTokenRefreshService tokenRefreshService;
|
|
|
|
|
|
+ private final String KEY = "bb3648b0b93f2f82135a6dac38dc418f808346a434";
|
|
|
+
|
|
|
@XxlJob("bytedanceAppletTokenRefreshJob")
|
|
|
public void bytedanceAppletTokenRefreshJob() {
|
|
|
log.info("[bytedanceAppletTokenRefreshJob] 任务开始");
|
|
|
@@ -26,6 +29,12 @@ public class BytedanceAppletTokenRefreshJob {
|
|
|
} catch (Exception e) {
|
|
|
XxlJobHelper.handleFail("[bytedanceAppletTokenRefreshJob] 异常 + " + e.getMessage());
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ //机器人预警,当抖音剧集episode_id不为空,platform_config中不包含episode_id时,预警
|
|
|
+ String url2 = "https://api.cms.artlinkworld.cn/thirtPartVideo/checkEpisodesIds";
|
|
|
+ HttpUtils.httpGet(String.format("%s?id=%s", url2, KEY), null, null);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|