guoshuai 3 недель назад
Родитель
Сommit
c12ff20975
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      src/main/java/com/qmrb/system/controller/UserController.java

+ 3 - 2
src/main/java/com/qmrb/system/controller/UserController.java

@@ -133,8 +133,9 @@ public class UserController extends CommonController {
                 userInfo.setNickName(userInfo.getNickName());
                 userInfo.setAvatarUrl(userInfo.getAvatarUrl());
                 //生成token
-                userAuthInfo = new UserAuthInfo();
-                userAuthInfo.setUsername(userInfo.getOpenId());
+                // userAuthInfo = new UserAuthInfo();
+                // userAuthInfo.setUsername(userInfo.getOpenId());
+                userAuthInfo = sysUserService.getUserAuthInfo(userInfo.getOpenId());
                 Set<String> roles = new HashSet<>();
                 roles.add("PARK_USER");
                 userAuthInfo.setRoles(roles);