...
|
...
|
@@ -94,6 +94,7 @@ class User extends Api |
|
|
"time": "1553839125",
|
|
|
"data": {
|
|
|
"token": "token",//登录唯一标识
|
|
|
"avatar": "头像"
|
|
|
},
|
|
|
})
|
|
|
*/
|
...
|
...
|
@@ -198,7 +199,7 @@ class User extends Api |
|
|
if ($userId && $row) {
|
|
|
Db::commit();
|
|
|
$token = generate_user_token($userId);
|
|
|
$this->success("登录成功!", ['token' => $token]);
|
|
|
$this->success("登录成功!", ['token' => $token, 'avatar' => $wxUserData['avatarUrl']]);
|
|
|
} else {
|
|
|
Db::rollback();
|
|
|
$this->error('登录失败');
|
...
|
...
|
|