From 6c5a0cba6e74e43db80ce8dca7e24044698a59fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=AE=E5=87=89?= <927625802@qq.com> Date: Wed, 31 Mar 2021 11:05:39 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8Drefresh=5Ftoken?= =?UTF-8?q?=E5=A4=B1=E6=95=88=E6=97=B6=E6=97=A0=E9=99=90=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- alidrive/auth.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/alidrive/auth.go b/alidrive/auth.go index fbea463517d..76176a6a7c8 100644 --- a/alidrive/auth.go +++ b/alidrive/auth.go @@ -23,6 +23,10 @@ func RefreshToken(drive *conf.Drive) bool { return false } } + if token.Code != "" { + log.Errorf("盘[%s]刷新token出错:%s", drive.Name, token.Message) + return false + } //刷新成功 更新token drive.AccessToken = token.AccessToken drive.RefreshToken = token.RefreshToken