afa 5 月之前
父节点
当前提交
047a64c7ee
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
     }
 }