|
|
|
@ -228,6 +228,24 @@ class User extends BaseController |
|
|
|
return $this->renderSuccess('数据返回成功', ['list' => $list]); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* @return array |
|
|
|
* @throws \think\db\exception\DataNotFoundException |
|
|
|
* @throws \think\db\exception\DbException |
|
|
|
* @throws \think\db\exception\ModelNotFoundException |
|
|
|
*/ |
|
|
|
public function transferBalance() |
|
|
|
{ |
|
|
|
$userData = $this->request->userInfo; |
|
|
|
|
|
|
|
$result = UserModel::transferBalance($userData['id']); |
|
|
|
|
|
|
|
if (!$result['status']) return $this->renderError($result['msg']); |
|
|
|
|
|
|
|
return $this->renderSuccess('成功'); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 退出登陆 |
|
|
|
*/ |
|
|
|
|