为授权的小程序帐号上传小程序代码时一直报47001错误
错误:{"errcode":47001,"errmsg":"data format error hint: [OBIbsA08574526]"}
代码:
form := url.Values{} extJson := `{ "extAppid" : "wx6c316xxxx75b1519" , "ext" :{ "orgId" : "1" , "version" : "v0.1" }, "extPages" :{ "index" :{ }, "search/index" :{ } }, "pages" :[ "index" , "search/index" ], "window" :{ }, "networkTimeout" :{ }, "tabBar" :{ } }` form.Set( "template_id" , "0" ) form.Set( "ext_json" , extJson) form.Set( "user_version" , "v0.1" ) form.Set( "user_desc" , "test" ) uri := "https://api.weixin.qq.com/wxa/commit?access_token=" +token res,err := http.PostForm(uri,form) if err != nil { panic(err) } defer res.Body.Close() b,err := ioutil.ReadAll(res.Body) if err != nil { panic(err) } fmt.Println(string(b)) |
用的golang,语言真的不重要啦,主要看这部分:
extJson := `{ "extAppid" : "wx6c316xxxx75b1519" , "ext" :{ "orgId" : "1" , "version" : "v0.1" }, "extPages" :{ "index" :{ }, "search/index" :{ } }, "pages" :[ "index" , "search/index" ], "window" :{ }, "networkTimeout" :{ }, "tabBar" :{ } }` |
请问问题出在哪里?
如果不是代码问题,请问是不是extAppid有误?谢谢!
现在问题还没有解决 ,真的希望官方能有人看见啊。
@Oric