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)