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, };