|
@@ -190,17 +190,17 @@ public class LoginServiceImpl implements LoginService {
|
|
|
}
|
|
|
// 获取手机号对应机构用户
|
|
|
WxClubUserVo clubUser = clubMapper.getWxClubUser(mobile, null, authUserId, null, null);
|
|
|
- if (null == clubUser) {
|
|
|
+ if (null == clubUser || 1 != clubUser.getStatus()) {
|
|
|
clubUser = new WxClubUserVo();
|
|
|
clubUser.setMobile(mobile);
|
|
|
return ResponseJson.error("抱歉,您的手机号暂无权限登录", clubUser);
|
|
|
}
|
|
|
// 校验机构和供应商的状态是否为已上线
|
|
|
- AuthVo auth = authMapper.getAuthById(clubUser.getAuthId());
|
|
|
- Integer shopStatus = shopMapper.getShopStatus(auth.getAuthUserId());
|
|
|
+ // AuthVo auth = authMapper.getAuthById(clubUser.getAuthId());
|
|
|
+ /*Integer shopStatus = shopMapper.getShopStatus(clubUser.getAuthUserId());
|
|
|
if (1 != auth.getStatus() || 1 != shopStatus) {
|
|
|
return ResponseJson.error("登录失败", null);
|
|
|
- }
|
|
|
+ }*/
|
|
|
// 登录成功redis保存token
|
|
|
String accessToken = UUID.randomUUID().toString();
|
|
|
redisService.set(accessToken, mobile + "," + authUserId, 60L * 60 * 24);
|