From 52f9f615f68fe631070ce56b89ca632ff0dd80ac Mon Sep 17 00:00:00 2001 From: Jerry <85411418@qq.com> Date: Sat, 3 Aug 2024 11:38:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=9B=B4=E6=96=B0Token?= =?UTF-8?q?=EF=BC=8Cpanic=E5=90=8E=E5=A2=9E=E5=8A=A0=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E9=87=8D=E5=90=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mini/access_token.go | 1 + open/access_token.go | 1 + public/access_token.go | 1 + 3 files changed, 3 insertions(+) diff --git a/mini/access_token.go b/mini/access_token.go index 8b7c87e..98867cc 100644 --- a/mini/access_token.go +++ b/mini/access_token.go @@ -93,6 +93,7 @@ func (s *SDK) goAutoRefreshStableAccessToken() { buf := make([]byte, 64<<10) buf = buf[:runtime.Stack(buf, false)] s.logger.Errorf("mini_goAutoRefreshAccessToken: panic recovered: %s\n%s", r, buf) + s.goAutoRefreshStableAccessToken() } }() for { diff --git a/open/access_token.go b/open/access_token.go index 2bcaa02..4565b2b 100644 --- a/open/access_token.go +++ b/open/access_token.go @@ -46,6 +46,7 @@ func (s *SDK) goAutoRefreshAccessTokenJob() { buf := make([]byte, 64<<10) buf = buf[:runtime.Stack(buf, false)] s.logger.Errorf("open_goAutoRefreshAccessToken: panic recovered: %s\n%s", r, buf) + s.goAutoRefreshAccessTokenJob() } }() for { diff --git a/public/access_token.go b/public/access_token.go index df1b99b..8d5e5cb 100644 --- a/public/access_token.go +++ b/public/access_token.go @@ -42,6 +42,7 @@ func (s *SDK) goAutoRefreshAccessToken() { buf := make([]byte, 64<<10) buf = buf[:runtime.Stack(buf, false)] s.logger.Errorf("public_goAutoRefreshAccessToken: panic recovered: %s\n%s", r, buf) + s.goAutoRefreshAccessToken() } }() for {