|
|
@@ -460,11 +460,7 @@ public class UserApiController extends BaseApiController {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "", "用户ID"));
|
|
|
return res;
|
|
|
}
|
|
|
- if(userIdentity.getAuthentication().intValue() == UserAuthentication.AUTHENTICATION.getCode().intValue()
|
|
|
- && userIdentity.getType().intValue() == UserType.ORGANIZATION.getCode().intValue()){
|
|
|
- res.getError().add(buildError(null, "", "用户已经企业认证"));
|
|
|
- return res;
|
|
|
- }else if(userIdentity.getAuthentication().intValue() == UserAuthentication.UN_AUTHENTICATION.getCode().intValue()){
|
|
|
+ if(userIdentity.getAuthentication().intValue() == UserAuthentication.UN_AUTHENTICATION.getCode().intValue()){
|
|
|
userIdentity.setType(UserType.PERSONAL.getCode());
|
|
|
userIdentity.setAuthentication(UserAuthentication.AUTHENTICATION.getCode());
|
|
|
}
|