浏览代码

Update Auth.php

Anyon 4 年之前
父节点
当前提交
c9341282b3
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/data/controller/api/Auth.php

+ 2 - 1
app/data/controller/api/Auth.php

@@ -54,7 +54,8 @@ abstract class Auth extends Controller
     protected function getMember()
     {
         try {
-            return UserService::instance()->get(['token' => $this->token]);
+            $map = ['token' => $this->token];
+            return UserService::instance()->get($map);
         } catch (HttpResponseException $exception) {
             throw $exception;
         } catch (\Exception $exception) {