Commit b045058c by levphon

微信小程序C端账号体系

1 parent 9d16beb7
......@@ -96,8 +96,6 @@ public class ThirdLoginController {
if (optUserId.isPresent()) {
//已绑定本地账号
AppUser user = userService.getAppUserByUserId(authRel.getUserId());
user.setUserType(MiniUserType.NORMAL.getType());
String token = userService.createToken(user);
rtnMap.put("user", user);
rtnMap.put("token", token);
......
......@@ -69,9 +69,7 @@ public class LoginService {
User user = register(simpleUser);
//返给前端的用户信息
AppUser appUser = UserConverter.INSTANCE.su2au(simpleUser);
appUser.setUserType(MiniUserType.NORMAL.getType());
return appUser;
return UserConverter.INSTANCE.su2au(simpleUser);
} else if (loginBO.getLoginType() == 2) {
//验证码校验
//smsService.verifyCode(loginBO.getAccount(), loginBO.getCode());
......@@ -120,7 +118,7 @@ public class LoginService {
UserAuthRel userAuthRel = userAuthRelMapper.selectByAuthTypeAndAuthId(AuthType.LOCAL.getType(), localAuth.getId());
if (userAuthRel == null) {
user = new User();
user.setLinkerId(simpleUser.getId());
user.setRelUserId(simpleUser.getId());
user.setBlacklist(simpleUser.getBlacklist());
userMapper.saveOrUpdate(user);
......
......@@ -37,6 +37,7 @@
tcu.id as cuserId,
tcula.account,
tcula2.username,
'normal' as userType,
tcu.blacklist
from t_cust_user_local_auth tcula
inner join t_cust_user_auth_rel tcuar on tcula.id = tcuar.auth_id
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!