Procházet zdrojové kódy

抖音小程序定时更新

ZHAOXIAN před 1 rokem
rodič
revize
49d8872c0b

+ 3 - 0
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/data/service/impl/BytedanceRefreshTokenServiceImpl.java

@@ -91,6 +91,9 @@ public class BytedanceRefreshTokenServiceImpl implements IBytedanceRefreshTokenS
                     if (app.getString("app_id").startsWith("wx")) {
                         key = "wechat-applet-access-token-key-" + app.getString("applet_id");
                     }
+                    if (Check.isNull(key)) {
+                        continue;
+                    }
                     String token = jedis.get(key);
                     if (!Check.isNull(token)) {
                         app.put("token", token);

+ 1 - 1
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/handler/BytedanceAppletTokenRefreshJob.java

@@ -8,7 +8,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Component;
 
 /**
- * 抖音小程序access_token刷新
+ * 抖音小程序clientToke刷新
  */
 @Slf4j
 @Component