|
@@ -61,7 +61,7 @@ public class UserStudentCertController {
|
|
|
public Result<String> getStudentIdentity(String school, String code, String dsCode) throws Exception {
|
|
public Result<String> getStudentIdentity(String school, String code, String dsCode) throws Exception {
|
|
|
long userId = StpUserUtil.getLoginIdAsLong();
|
|
long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
User user = userMapper.selectById(userId);
|
|
User user = userMapper.selectById(userId);
|
|
|
- if (StrUtil.isEmpty(user.getOpenId())) {
|
|
|
|
|
|
|
+ if (user == null || StrUtil.isEmpty(user.getOpenId())) {
|
|
|
throw BusinessRuntimeException.getInstance("用户未授权");
|
|
throw BusinessRuntimeException.getInstance("用户未授权");
|
|
|
}
|
|
}
|
|
|
//是否认证过
|
|
//是否认证过
|