|
@@ -2,6 +2,7 @@ package cn.com.ctop.job.kuaishou.handler;
|
|
|
|
|
|
|
|
|
|
|
|
|
import cn.com.ctop.job.kuaishou.data.service.IKuaiShouRefreshTokenService;
|
|
import cn.com.ctop.job.kuaishou.data.service.IKuaiShouRefreshTokenService;
|
|
|
|
|
+import cn.com.ctop.job.kuaishou.data.utils.HttpUtils;
|
|
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -16,8 +17,8 @@ import org.springframework.stereotype.Component;
|
|
|
@Slf4j
|
|
@Slf4j
|
|
|
@Component
|
|
@Component
|
|
|
public class KuaiShouRefreshTokenJob {
|
|
public class KuaiShouRefreshTokenJob {
|
|
|
-@Autowired
|
|
|
|
|
-private IKuaiShouRefreshTokenService kuaiShouRefreshTokenService;
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private IKuaiShouRefreshTokenService kuaiShouRefreshTokenService;
|
|
|
|
|
|
|
|
@XxlJob("kuaiShouRefreshToken")
|
|
@XxlJob("kuaiShouRefreshToken")
|
|
|
public void kuaiShouRefreshToken() throws Exception {
|
|
public void kuaiShouRefreshToken() throws Exception {
|
|
@@ -28,7 +29,10 @@ private IKuaiShouRefreshTokenService kuaiShouRefreshTokenService;
|
|
|
|
|
|
|
|
@XxlJob("chuanshanjiaRefreshToken")
|
|
@XxlJob("chuanshanjiaRefreshToken")
|
|
|
public void chuanshanjiaRefreshToken() throws Exception {
|
|
public void chuanshanjiaRefreshToken() throws Exception {
|
|
|
- kuaiShouRefreshTokenService.chuanshanjiaRefreshToken();
|
|
|
|
|
|
|
+ String url = "https://shortplay.artlinkworld.cn/notice/chuanshanjiaRefreshToken";
|
|
|
|
|
+ String s = HttpUtils.httpGet(url, null, null);
|
|
|
|
|
+ log.info("刷新穿山甲token返回:{}", s);
|
|
|
|
|
+ // kuaiShouRefreshTokenService.chuanshanjiaRefreshToken();
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|