Commit c4eae0b5 by wuwenlong

login bugfix

parent c2ea7233
......@@ -80,8 +80,8 @@ public class SConsumerCenterServiceImpl extends ServiceImpl<SConsumerMapper, SCo
SConsumerToken sConsumerToken = sConsumerTokenService.getByOpenid(response.getOpenId());
LoginResponse loginResponse = new LoginResponse();
if (ObjectUtil.isNotNull(sConsumerToken)) {// 已存在,正常登录
logger.info("小程序登陆成功 = Id " + sConsumerToken.getId());
SConsumer sConsumer = sConsumerService.getById(sConsumerToken.getId());
logger.info("小程序登陆成功 = Id " + sConsumerToken.getUid());
SConsumer sConsumer = sConsumerService.getById(sConsumerToken.getUid());
if (sConsumer == null || sConsumer.getStatus() == 0) {
throw new BaseException("当前账户已禁用,请联系管理员!");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment