Ver Fonte

Merge branch 'master' of https://gitee.com/hcst/adsp-boot

syh há 5 anos atrás
pai
commit
792eb29505

+ 3 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/CallbackController.java

@@ -59,6 +59,9 @@ public class CallbackController {
             }
             if (StringUtils.isNotBlank(authCode)) {
                 KuaishouResultToken accessToken = kuaishouInterfaceService.getAccessToken(authCode);
+                if (accessToken.getCode() != 0) {
+                    throw new Exception("快手回调token返回错误");
+                }
                 KuaishouAccessToken token = accessToken.getData();
                 if (token != null) {
                     Long accountId = token.getAccountId();