下单校验微信绑定状态
This commit is contained in:
parent
853b918d54
commit
8f4f69781f
|
|
@ -1842,7 +1842,7 @@ public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements
|
||||||
return Result.error("该微信已被其他用户绑定");
|
return Result.error("该微信已被其他用户绑定");
|
||||||
}
|
}
|
||||||
|
|
||||||
UserEntity userEntity = getOne(new LambdaQueryWrapper<UserEntity>().eq(UserEntity::getUserId, userId));
|
UserEntity userEntity = queryByUserId(userId);
|
||||||
if (StringUtils.isNotBlank(userEntity.getWxOpenId())) {
|
if (StringUtils.isNotBlank(userEntity.getWxOpenId())) {
|
||||||
return Result.error("当前用户已绑定微信");
|
return Result.error("当前用户已绑定微信");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ public class AppOrdersController extends AbstractController {
|
||||||
if (commonInfo == null || !"1".equals(commonInfo.getValue())) {
|
if (commonInfo == null || !"1".equals(commonInfo.getValue())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
UserEntity userEntity = userService.getOne(new LambdaQueryWrapper<UserEntity>().eq(UserEntity::getUserId, userId).select(UserEntity::getWxOpenId));
|
UserEntity userEntity = userService.queryByUserId(userId);
|
||||||
if (StrUtil.isBlank(userEntity.getWxOpenId())) {
|
if (StrUtil.isBlank(userEntity.getWxOpenId())) {
|
||||||
throw new SqxException("请先绑定微信");
|
throw new SqxException("请先绑定微信");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue