Commit 49c90c7e by lujunyi

追加登录类型到token里面

parent 9e59b6eb
...@@ -11,7 +11,7 @@ class UserController extends BaseApiController ...@@ -11,7 +11,7 @@ class UserController extends BaseApiController
public function userInfo() public function userInfo()
{ {
$userId = auth('api')->user()->id; $userId = auth('api')->user()->id;
$data = ['abcde' => 111, 'role' => '问诊人', 'id' => $userId]; $data = ['id' => $userId, 'login_type' => User::LOGIN_TYPE_USER];
return $this->success($data); return $this->success($data);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment