Browse Source

Wesmiler 校企小程序源代码部署

wesmiler 4 years ago
parent
commit
cb6d1278e0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/api/controller/Passport.php

+ 1 - 0
app/api/controller/Passport.php

@@ -67,6 +67,7 @@ class Passport extends Controller
         $userInfo = $LoginService->getUserInfo();
         return $this->renderSuccess([
             'userId' => (int)$userInfo['user_id'],
+            'user_type' => (int)$userInfo['user_type'],
             'token' => $LoginService->getToken((int)$userInfo['user_id'])
         ], '登录成功');
     }