From 33c3b36b1cc338d5315d466f714cf0d917a9787e Mon Sep 17 00:00:00 2001 From: "shaochuan.wu" Date: Sat, 7 Aug 2021 12:22:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20cqhttp=20=E7=9A=84?= =?UTF-8?q?=E5=8F=91=E9=80=81=E7=9A=84=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=B8=BA=20JSON=20=EF=BC=8C=E9=81=BF=E5=85=8D=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E8=A1=A8=E5=8D=95=E5=8F=AF=E8=83=BD=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E7=9A=84=E8=BD=AC=E7=A0=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sample/notify.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sample/notify.js b/sample/notify.js index b21b33a0..8c85baf8 100644 --- a/sample/notify.js +++ b/sample/notify.js @@ -208,9 +208,9 @@ function gobotNotify(text, desp, time = 2100) { if (GOBOT_URL) { const options = { url: `${GOBOT_URL}?access_token=${GOBOT_TOKEN}&${GOBOT_QQ}`, - body: `message=${text}\n${desp}`, + json: {message:`${text}\n${desp}`}, headers: { - 'Content-Type': 'application/x-www-form-urlencoded', + 'Content-Type': 'application/json', }, timeout, };