|
|
@@ -14,21 +14,7 @@ class ApiAuthService
|
|
|
protected $allowFields = ['id', 'nickname', 'mobile', 'avatar', 'balance', 'score'];
|
|
|
|
|
|
|
|
|
- public function userinfo(bool $allinfo = false)
|
|
|
- {
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- public function logout()
|
|
|
- {
|
|
|
- //$this->adapter->logout();
|
|
|
- }
|
|
|
|
|
|
- public function getToken()
|
|
|
- {
|
|
|
- //$usertoken=$this->adapter->getUserToken();
|
|
|
- //return $usertoken->token;
|
|
|
- }
|
|
|
|
|
|
public function login(string $username, string $password)
|
|
|
{
|
|
|
@@ -58,7 +44,7 @@ class ApiAuthService
|
|
|
|
|
|
|
|
|
public function updateToken(int $uid, array $arr)
|
|
|
- {
|
|
|
+ {
|
|
|
return UserToken::where('user_id', $uid)->update($arr);
|
|
|
}
|
|
|
|