- 上传小程序代码一直报47001错误
https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/Mini_Programs/code/commit.html "{\"extEnable\":true,\"extAppid\":\"wx8e12fbdcf96b3e17\",\"directCommit\":false,\"ext\":{\"name\":\"wechat\",\"attr\":{\"host\":\"open.weixin.qq.com\",\"users\":[\"user_1\",\"user_2\"]}},\"extPages\":{\"pages/logs/logs\":{\"navigationBarTitleText\":\"logs\"}},\"window\":{\"backgroundTextStyle\":\"light\",\"navigationBarBackgroundColor\":\"#fff\",\"navigationBarTitleText\":\"Demo\",\"navigationBarTextStyle\":\"black\"},\"tabBar\":{\"list\":[{\"pagePath\":\"pages/index/index\",\"text\":\"首页\"},{\"pagePath\":\"pages/logs/logs\",\"text\":\"日志\"}]},\"networkTimeout\":{\"request\":10000,\"downloadFile\":10000}}" 以上是我在第三方平台上传小程序代码接口时的ext_json内容,是复制的[代码]ext.json[代码]内容,为什么一直报{"errcode":47001,"errmsg":"data format error hint: [cNusNa00943955]"},请帮忙看一下,多谢!!!
2019-11-04 - 第三方平台 上传小程序代码 报47001错误是怎么回事?
JSONObject json1=new JSONObject(); JSONObject json2=new JSONObject(); json1.accumulate("extEnable",true); json1.accumulate("extAppid","xxxxxxxxxxxxx"); json1.accumulate("directCommit",false); json2.accumulate("extAppid","xxxxxxxxxxxxx"); json1.accumulate("ext",json2.toString()); JSONObject json = new JSONObject(); json.accumulate("template_id","4"); json.accumulate("ext_json",json1.toString()); json.accumulate("user_version","v1.1"); json.accumulate("user_desc","first commit"); String retStr=""; retStr=httpClient.postJson(url, json); 数据发送前用json.tostring()把json转成string,"errcode":47001,"errmsg":"data format error hint: [jNVG_a06942372]",一直报这个错误,好几天了都没解决,请各位大神帮忙看看哪里出错了,多谢!!!!!
2019-11-01