From 9bd21cf288fbe82b62e4927a840953f3a2bc7654 Mon Sep 17 00:00:00 2001 From: renzhiyuan <465386466@qq.com> Date: Tue, 8 Apr 2025 11:14:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=9F=AD=E4=BF=A1=E5=8F=91?= =?UTF-8?q?=E9=80=81=E9=80=BB=E8=BE=91=EF=BC=8C=E6=94=AF=E6=8C=81=E5=8F=AF?= =?UTF-8?q?=E9=80=89=E4=B8=9A=E5=8A=A1=E7=B1=BB=E5=9E=8B=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- msg.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/msg.go b/msg.go index be62a1e..cf6fd52 100644 --- a/msg.go +++ b/msg.go @@ -24,8 +24,8 @@ func NewMessageCenter(host, clientKey, clientSecret, serverIndex, tempIndex stri }, } msg.header = map[string]string{"content-type": "application/json; charset=utf-8"} - accessToken, err := msg.getAccessToken() - msg.header = map[string]string{"Authorization": accessToken, "content-type": "application/json; charset=utf-8"} + token, err := msg.getAccessToken() + msg.header = map[string]string{"Authorization": token, "content-type": "application/json; charset=utf-8"} return msg, err }