|
|
@@ -1160,10 +1160,7 @@ public class AdminApiController extends BaseApiController {
|
|
|
// 判断用户是否通过认证
|
|
|
private Result checkCertify(Result res, String uid) {
|
|
|
OrganizationIdentity o = organizationIdentityService.selectOrgIdentityByUserId(uid);
|
|
|
- if (null == o){
|
|
|
- res.getError().add(buildError(ErrorConstants.NON_CERTIFIED, "未通过实名认证,无法操作!"));
|
|
|
- }
|
|
|
- if (5 != o.getAuditStatus()) {
|
|
|
+ if (null == o || 5 != o.getAuditStatus()) {
|
|
|
res.getError().add(buildError(ErrorConstants.NON_CERTIFIED, "未通过实名认证,无法操作!"));
|
|
|
}
|
|
|
return res;
|