|
@@ -460,12 +460,8 @@ public class UserApiController extends BaseApiController {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "", "用户ID"));
|
|
res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "", "用户ID"));
|
|
|
return res;
|
|
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()){
|
|
|
|
|
- userIdentity.setType(UserType.PERSONAL.getCode());
|
|
|
|
|
|
|
+ if(userIdentity.getAuthentication().intValue() == UserAuthentication.UN_AUTHENTICATION.getCode().intValue()){
|
|
|
|
|
+// userIdentity.setType(UserType.PERSONAL.getCode());
|
|
|
userIdentity.setAuthentication(UserAuthentication.AUTHENTICATION.getCode());
|
|
userIdentity.setAuthentication(UserAuthentication.AUTHENTICATION.getCode());
|
|
|
}
|
|
}
|
|
|
if (res.getError().isEmpty()) {
|
|
if (res.getError().isEmpty()) {
|