- 为授权的小程序帐号上传小程序代码时一直报47001错误
为授权的小程序帐号上传小程序代码时一直报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
2018-06-06 - ext_json 47001
为授权的小程序帐号上传小程序代码时一直报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
2018-05-26