userInfo获取修改
This commit is contained in:
@@ -3,6 +3,7 @@ package com.sqx.modules.app.interceptor;
|
|||||||
|
|
||||||
import cn.hutool.core.thread.ThreadUtil;
|
import cn.hutool.core.thread.ThreadUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
import com.sqx.common.exception.CzgException;
|
import com.sqx.common.exception.CzgException;
|
||||||
@@ -111,7 +112,7 @@ public class AuthorizationInterceptor extends HandlerInterceptorAdapter {
|
|||||||
throw new CzgException("异常行为用户: {}" + user.getUserId());
|
throw new CzgException("异常行为用户: {}" + user.getUserId());
|
||||||
}
|
}
|
||||||
// 实名认证信息
|
// 实名认证信息
|
||||||
UserInfo userInfo = userInfoService.getByUserId(user.getUserId());
|
UserInfo userInfo = userInfoService.getOne(new LambdaQueryWrapper<UserInfo>().eq(UserInfo::getUserId, user.getUserId()));
|
||||||
if (userInfo != null && StrUtil.isNotBlank(userInfo.getCertNo())) {
|
if (userInfo != null && StrUtil.isNotBlank(userInfo.getCertNo())) {
|
||||||
TbUserBlacklist blacklist = tbUserBlacklistMapper.selectOne(Wrappers.<TbUserBlacklist>lambdaQuery().eq(TbUserBlacklist::getIdCardNo, userInfo.getCertNo()));
|
TbUserBlacklist blacklist = tbUserBlacklistMapper.selectOne(Wrappers.<TbUserBlacklist>lambdaQuery().eq(TbUserBlacklist::getIdCardNo, userInfo.getCertNo()));
|
||||||
if (blacklist != null) {
|
if (blacklist != null) {
|
||||||
|
|||||||
@@ -528,8 +528,8 @@ public class CashOutServiceImpl extends ServiceImpl<CashOutDao, CashOut> impleme
|
|||||||
return Result.error(9999, "请先绑定支付宝账号!");
|
return Result.error(9999, "请先绑定支付宝账号!");
|
||||||
}
|
}
|
||||||
|
|
||||||
UserInfo userDetailInfo = userInfoService.getByUserId(userId);
|
UserInfo userDetailInfo = userInfoService.getOne(new LambdaQueryWrapper<UserInfo>().eq(UserInfo::getUserId, userId));
|
||||||
if (StrUtil.isBlank(userDetailInfo.getCertName())) {
|
if (userDetailInfo == null || StrUtil.isBlank(userDetailInfo.getCertName())) {
|
||||||
return Result.error(9991, "请先实名认证!");
|
return Result.error(9991, "请先实名认证!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user