拉黑限制
This commit is contained in:
parent
f38ea13960
commit
f4787bd7cb
|
|
@ -894,7 +894,7 @@ public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements
|
|||
return Result.error("账号或密码不正确!");
|
||||
}
|
||||
|
||||
if (userInfo.getStatus().equals(2)) {
|
||||
if (!userInfo.getStatus().equals(1)) {
|
||||
return Result.error("账号已被禁用,请联系客服处理!");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -262,6 +262,13 @@ public class OrdersServiceImpl extends ServiceImpl<OrdersDao, Orders> implements
|
|||
@Override
|
||||
public Result insertCourseOrders(Long courseId, Long courseDetailsId, Long userId) {
|
||||
log.info("生成商品订单信息接口入参为:{},{}", courseId, userId);
|
||||
UserEntity userEntity = userService.getById(userId);
|
||||
if (userEntity == null) {
|
||||
throw new SqxException("用户不存在");
|
||||
}
|
||||
if (!userEntity.getStatus().equals(1)) {
|
||||
throw new SqxException("账号已被禁用,请联系客服处理!");
|
||||
}
|
||||
// reentrantReadWriteLock.writeLock().lock();
|
||||
try {
|
||||
CourseDetails courseDetail = null;
|
||||
|
|
|
|||
|
|
@ -553,6 +553,9 @@ public class CashOutServiceImpl extends ServiceImpl<CashOutDao, CashOut> impleme
|
|||
if (userInfo.getStatus().equals(0)) {
|
||||
return Result.error(9999, "账号不存在!");
|
||||
}
|
||||
if (!userInfo.getStatus().equals(1)) {
|
||||
throw new SqxException("账号已被禁用,请联系客服处理!");
|
||||
}
|
||||
|
||||
UserInfo userDetailInfo = userInfoService.getOne(new LambdaQueryWrapper<UserInfo>().eq(UserInfo::getUserId, userId));
|
||||
if (userDetailInfo == null || StrUtil.isBlank(userDetailInfo.getCertName())) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue