errcode 47001: data format error
人话解释:你 POST 给微信接口的请求体不是合法的 JSON 字符串,或者缺少了 Content-Type 头,或者字段类型不对。
人话解释:你 POST 给微信接口的请求体不是合法的 JSON 字符串,或者缺少了 Content-Type 头,或者字段类型不对。
await fetch(apiUrl, {
method: 'POST',
headers: { 'Content-Type': 'application/json; charset=utf-8' },
body: JSON.stringify(payload),
});