...
|
...
|
@@ -200,6 +200,12 @@ class User extends Api |
|
|
if ($userId && $row) {
|
|
|
Db::commit();
|
|
|
$token = generate_user_token($userId);
|
|
|
|
|
|
$setvalid = Db::name('setvalid')->where('id',1)->find();
|
|
|
$res['money'] = $setvalid['money'];
|
|
|
|
|
|
|
|
|
|
|
|
$this->success("登录成功!", ['user_id'=>$userId,'token' => $token, 'avatar' => $wxUserData['avatarUrl']]);
|
|
|
} else {
|
|
|
Db::rollback();
|
...
|
...
|
|