afa 5 months ago
parent
commit
047a64c7ee
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/api/service/auth/MysqlAdapter.php

+ 1 - 1
app/api/service/auth/MysqlAdapter.php

@@ -48,7 +48,7 @@ class MysqlAdapter
     public static function logout(int $uid)
     {   
         $token = request()->header('token');
-        UserToken::where('$token', $token)->delete();
+        UserToken::where('token', $token)->delete();
         Cache::delete('user_info_'.$uid);
     }
 }