diff --git a/plugins/gdrive/index.py b/plugins/gdrive/index.py index bc864901b..ec7e609b8 100644 --- a/plugins/gdrive/index.py +++ b/plugins/gdrive/index.py @@ -123,14 +123,9 @@ def setAuthUrl(): def clearAuth(): - cfg = getServerDir() + "/user.conf" - if os.path.exists(cfg): - os.remove(cfg) - - token = getServerDir() + "/token.pickle" + token = getServerDir() + "/token.json" if os.path.exists(token): os.remove(token) - return mw.returnJson(True, "清空授权成功!")