审核状态
This commit is contained in:
parent
75fa43dc1c
commit
5dbcf3ce5e
@ -219,7 +219,7 @@ public class AppUserService : BaseService<AppUserEntity>, ITransient
|
|||||||
CreatedUserId = userId,
|
CreatedUserId = userId,
|
||||||
CreatedTime = DateTime.Now,
|
CreatedTime = DateTime.Now,
|
||||||
Status = AvailabilityStatus.Enable,
|
Status = AvailabilityStatus.Enable,
|
||||||
AuditStatus = AuditStatus.Pass
|
AuditStatus = AuditStatus.PendingSubmission
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -173,7 +173,6 @@ public class MyController : IDynamicApiController
|
|||||||
var user = await _appUserRepository.GetFirstAsync(u => u.Id == userId);
|
var user = await _appUserRepository.GetFirstAsync(u => u.Id == userId);
|
||||||
if (user == null) throw Oops.Bah("用户信息不存在");
|
if (user == null) throw Oops.Bah("用户信息不存在");
|
||||||
|
|
||||||
if (user.AuditStatus == AuditStatus.Pass) throw Oops.Bah("已通过实名认证,无需重复提交");
|
|
||||||
if (user.AuditStatus == AuditStatus.PendingAudit) throw Oops.Bah("审核中,请勿重复提交");
|
if (user.AuditStatus == AuditStatus.PendingAudit) throw Oops.Bah("审核中,请勿重复提交");
|
||||||
|
|
||||||
// 验证必填字段
|
// 验证必填字段
|
||||||
|
|||||||
@ -157,7 +157,7 @@ public class OAuthController : IDynamicApiController
|
|||||||
Password = encryptedPassword,
|
Password = encryptedPassword,
|
||||||
PersonType = PersonType.User,
|
PersonType = PersonType.User,
|
||||||
Status = AvailabilityStatus.Enable,
|
Status = AvailabilityStatus.Enable,
|
||||||
AuditStatus = AuditStatus.Pass,
|
AuditStatus = AuditStatus.PendingSubmission,
|
||||||
CreatedTime = DateTime.Now,
|
CreatedTime = DateTime.Now,
|
||||||
CreatedUserId = 0
|
CreatedUserId = 0
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user