浏览代码

用户信息

afa 8 月之前
父节点
当前提交
ee8857b1f4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/api/controller/User.php

+ 1 - 1
application/api/controller/User.php

@@ -39,7 +39,7 @@ class User extends Api
      */
      */
     public function userInfo(UserArea $userArea,UserModel $userModel, LedgerWalletModel $ledgerWalletModel)
     public function userInfo(UserArea $userArea,UserModel $userModel, LedgerWalletModel $ledgerWalletModel)
     {
     {
-        $user = $userModel::getUserInfo($this->auth->id);
+        $user = $this->auth->getUser();
         $resp = [
         $resp = [
             'id'              => $user['id'],
             'id'              => $user['id'],
             'nickname'        => $user['nickname'],
             'nickname'        => $user['nickname'],