update AppUserServiceImpl.java
This commit is contained in:
parent
48fb062fee
commit
755226505e
@ -326,7 +326,9 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserDao, AppUserEntity> i
|
|||||||
throw new LinfengException("请正确配置appId和密钥");
|
throw new LinfengException("请正确配置appId和密钥");
|
||||||
}
|
}
|
||||||
//根据openId获取数据库信息 判断用户是否登录
|
//根据openId获取数据库信息 判断用户是否登录
|
||||||
AppUserEntity user = this.lambdaQuery().eq(AppUserEntity::getOpenid, openId).one();
|
AppUserEntity user = this.lambdaQuery()
|
||||||
|
.eq(AppUserEntity::getOpenid, openId)
|
||||||
|
.one();
|
||||||
if (ObjectUtil.isNotNull(user)) {
|
if (ObjectUtil.isNotNull(user)) {
|
||||||
if (user.getStatus() .equals(Constant.USER_BANNER)) {
|
if (user.getStatus() .equals(Constant.USER_BANNER)) {
|
||||||
throw new LinfengException("该账户已被禁用");
|
throw new LinfengException("该账户已被禁用");
|
||||||
@ -346,7 +348,9 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserDao, AppUserEntity> i
|
|||||||
list.add(Constant.DEFAULT_TAG);
|
list.add(Constant.DEFAULT_TAG);
|
||||||
appUser.setTagStr(JSON.toJSONString(list));
|
appUser.setTagStr(JSON.toJSONString(list));
|
||||||
baseMapper.insert(appUser);
|
baseMapper.insert(appUser);
|
||||||
AppUserEntity users = this.lambdaQuery().eq(AppUserEntity::getOpenid, openId).one();
|
AppUserEntity users = this.lambdaQuery()
|
||||||
|
.eq(AppUserEntity::getOpenid, openId)
|
||||||
|
.one();
|
||||||
if(ObjectUtil.isNull(users)){
|
if(ObjectUtil.isNull(users)){
|
||||||
throw new LinfengException("注册失败");
|
throw new LinfengException("注册失败");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user