From 4e22a897308b122e638b629bef3344c01ea86367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 11 Aug 2022 18:45:00 +0800 Subject: [PATCH] 1 --- platformapi/weixinapi/sns.go | 1 + 1 file changed, 1 insertion(+) diff --git a/platformapi/weixinapi/sns.go b/platformapi/weixinapi/sns.go index 6902737a..3d0081de 100644 --- a/platformapi/weixinapi/sns.go +++ b/platformapi/weixinapi/sns.go @@ -141,6 +141,7 @@ func (a *API) SNSCode2Session(jsCode string) (sessionInfo *SessionInfo, err erro func (a *API) SNSGetUserPhone(jsCode string) (string, error) { url := "wxa/business/getuserphonenumber?access_token=%s" if a.token == "" { + a.CBRetrieveToken() url = fmt.Sprintf(url, a.CBGetToken()) } else { url = fmt.Sprintf(url, a.token)