第三方平台上传小程序代码爆错47001
发布于 5 年前 作者 weijin 12985 次浏览 来自 问答

string(362) “{ “template_id”:0, “ext_json”:{ “extEnable”: false, “extAppid”: “wx32fd2620efef436c”, “directCommit”: false, “ext”: { }, “extPages”: { }, “window”:{ }, “tabBar”: { }, “networkTimeout”: { } }, “user_version”:“V1.13”, “user_desc”:“isset” }” string(69) “{“errcode”:47001,“errmsg”:“data format error hint: [2Mzb6a07924529]”}”

2 回复
{
    "extEnable": true,
    "extAppid": "授权小程序",
    "directCommit": false,
    "ext": {},
    "extPages": {},
    "window": {},
    "tabBar": {},
    "networkTimeout": {}
}

要把上方JSON对象1转为JSON字符串,再填入下方JSON对象2

{
    "template_id": 1,
    "ext_json": "JSON字符串填在这里",
    "user_version": "",
    "user_desc": ""
}

最后请求 https://api.weixin.qq.com/wxa/release?access_token=TOKEN 把JSON对象2POST过去就好了。

回到顶部