main
mengqiang 4 years ago
parent f92d75a3ca
commit ae200a4ded
  1. 6
      sso-sys-client1/src/main/java/com/example/sso/client/auth/AuthService.java

@ -47,7 +47,7 @@ public class AuthService {
}
ResultModel resultModel = JSON.parseObject(response, ResultModel.class);
if (null == resultModel || StringUtils.isBlank(resultModel.getData().toString())) {
if (null == resultModel) {
throw new RuntimeException("认证中心-无返回");
}
@ -55,6 +55,10 @@ public class AuthService {
throw new RuntimeException("认证中心调用失败," + resultModel.getMsg());
}
if ( StringUtils.isBlank(resultModel.getData().toString())) {
throw new RuntimeException("认证中心-无Data返回");
}
return JSON.parseObject(resultModel.getData().toString(), ApplyAuthVO.class);
}

Loading…
Cancel
Save