| | |
| | | */ |
| | | @Service |
| | | public class TAppUserServiceImpl extends ServiceImpl<TAppUserMapper, TAppUser> implements TAppUserService { |
| | | @Autowired |
| | | private TokenService tokenService; |
| | | @Override |
| | | public void wxLogin(AppletUserDecodeData appletUserDecodeData) { |
| | | public TAppUser wxLogin(AppletUserDecodeData appletUserDecodeData) { |
| | | // 通过手机号查询用户,是否已存在手动导入用户,包含支付宝用户 |
| | | TAppUser appUser = this.getOne(Wrappers.lambdaQuery(TAppUser.class) |
| | | .eq(TAppUser::getOpenId, appletUserDecodeData.getOpenId()) |
| | |
| | | throw new ServiceException("账号被冻结,请联系管理员"); |
| | | } |
| | | } |
| | | return appUser; |
| | | } |
| | | } |