yumeng il y a 1 an
Parent
commit
bafc60ec97

+ 36 - 1
job-kuaishou/src/main/java/cn/com/ctop/job/kuaishou/handler/KuaiShouRefreshTokenJob.java

@@ -8,6 +8,9 @@ import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Component;
 
+import java.util.HashMap;
+import java.util.Map;
+
 
 /**
  * 广告主定时任务
@@ -32,9 +35,41 @@ public class KuaiShouRefreshTokenJob {
         String url = "https://shortplay.artlinkworld.cn/notice/chuanshanjiaRefreshToken";
         String s = HttpUtils.httpGet(url, null, null);
         log.info("刷新穿山甲token返回:{}", s);
-        // kuaiShouRefreshTokenService.chuanshanjiaRefreshToken();
 
     }
 
 
+    @XxlJob("authorizationQuery")
+    public void authorizationQuery() throws Exception {
+        String url = "https://shortplay.artlinkworld.cn/notice/authorizationQuery";
+        Map<String, Object> param = new HashMap<>();
+        param.put("thirtAppId", "ttd069a6d44f4376fe");
+        param.put("authAppId", "ttdf35a988403ffce301");
+        String s = HttpUtils.httpPostRequest(url, param, null);
+        log.info("穿山甲获取资源列表:{}", s);
+    }
+
+
+    @XxlJob("authorizationDetail")
+    public void authorizationDetail() throws Exception {
+        String url = "https://shortplay.artlinkworld.cn/notice/authorizationDetail";
+        Map<String, Object> param = new HashMap<>();
+        param.put("thirtAppId", "ttd069a6d44f4376fe");
+        param.put("authAppId", "ttdf35a988403ffce301");
+        String s = HttpUtils.httpPostRequest(url, param, null);
+        log.info("穿山甲获取资源列表详情:{}", s);
+    }
+
+
+    @XxlJob("cleanData")
+    public void cleanData() throws Exception {
+        String url = "https://shortplay.artlinkworld.cn/notice/cleanData";
+        Map<String, Object> param = new HashMap<>();
+        param.put("thirtAppId", "ttd069a6d44f4376fe");
+        param.put("authAppId", "ttdf35a988403ffce301");
+        String s = HttpUtils.httpPostRequest(url, param, null);
+        log.info("穿山甲清洗数据返回:{}", s);
+    }
+
+
 }