增加是否绑定手机字段

This commit is contained in:
TinyAnts 2022-09-13 16:53:52 +08:00
parent 8b4a2fa41a
commit fc6c7ca9e7
1 changed files with 4 additions and 0 deletions

View File

@ -131,6 +131,7 @@ public class LoginServiceImpl implements ILoginService {
model.setCreateTime(System.currentTimeMillis() / 1000);
model.setUpdateTime(System.currentTimeMillis() / 1000);
userMapper.insert(model);
user = model;
userId = model.getId();
if (StringUtil.isNull(userAuth)) {
@ -169,6 +170,7 @@ public class LoginServiceImpl implements ILoginService {
Map<String, Object> response = new LinkedHashMap<>();
response.put("id", userId);
response.put("isBindMobile", !user.getMobile().equals(""));
response.put("token", token);
return response;
} catch (WxErrorException e) {
@ -215,6 +217,7 @@ public class LoginServiceImpl implements ILoginService {
Map<String, Object> response = new LinkedHashMap<>();
response.put("id", user.getId());
response.put("isBindMobile", !user.getMobile().equals(""));
response.put("token", token);
return response;
}
@ -249,6 +252,7 @@ public class LoginServiceImpl implements ILoginService {
Map<String, Object> response = new LinkedHashMap<>();
response.put("id", user.getId());
response.put("isBindMobile", !user.getMobile().equals(""));
response.put("token", token);
return response;
}