作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

个人中心接口

@@ -115,7 +115,7 @@ class RestBaseController @@ -115,7 +115,7 @@ class RestBaseController
115 ->where(['token' => $token, 'device_type' => $deviceType]) 115 ->where(['token' => $token, 'device_type' => $deviceType])
116 ->join('__USER__ b', 'a.user_id = b.id') 116 ->join('__USER__ b', 'a.user_id = b.id')
117 ->find(); 117 ->find();
118 - $this->success($user); 118 + $this->success( $this->token);
119 if (!empty($user)) { 119 if (!empty($user)) {
120 $this->user = $user; 120 $this->user = $user;
121 $this->userId = $user['id']; 121 $this->userId = $user['id'];