|
@@ -183,7 +183,7 @@ public class SysLoginController
|
|
|
TtResult ttResult = JSONObject.parseObject(ttResultStr,TtResult.class);
|
|
|
|
|
|
// 生成令牌
|
|
|
- if (ttResult.getErr_no() != null){
|
|
|
+ if (ttResult.getErr_no() != 0){
|
|
|
throw new CustomException("抖音授权登录无效,错误原因:"+ttResult.getErr_tips());
|
|
|
}
|
|
|
|
|
@@ -219,7 +219,7 @@ public class SysLoginController
|
|
|
DyResult dyResult = JSONObject.parseObject(dyResultStr,DyResult.class);
|
|
|
|
|
|
// 生成令牌
|
|
|
- if (dyResult.getDyToken().getError_code() != null){
|
|
|
+ if (dyResult.getDyToken().getError_code() != 0){
|
|
|
throw new CustomException("抖音授权登录无效,错误原因:"+dyResult.getDyToken().getDescription());
|
|
|
}
|
|
|
DyUserInfoDTO dyUserInfoDTO= new DyUserInfoDTO();
|