Update Auth.php

This commit is contained in:
Anyon 2020-10-26 10:41:35 +08:00
parent 9232efa74f
commit c9341282b3

View File

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