final String url = "https://api.weixin.qq.com/wxa/commit?access_token="+authorizerAccessToken;
HttpClientUtils httpClient = new HttpClientUtils();
JSONObject json1=new JSONObject();
json1.accumulate("extEnable",true);
json1.accumulate("extAppid","xxxxxxxxxxxxxx");
JSONObject json = new JSONObject();
json.accumulate("template_id",4);
json.accumulate("ext_json",json1.toString());
json.accumulate("user_version","v1.0");
json.accumulate("user_desc","text");
/**發送Https請求到微信*/
System.out.println("發送的json:"+json.toString());
String retStr="";
try{
retStr=httpClient.postJson(url, json);
以上是代碼,{"errcode":47001,"errmsg":"data format error hint: [OZF9Va0448c393]"},一直報這樣的錯誤,好幾天了都還沒能解決,請各路大神幫幫看看是什么原因,多謝!!!!!!!
uj5u.com熱心網友回復:
我不會java,但這個錯誤是微信服務報的,我也出現過這個錯誤,肯定是你向服務器傳遞的引數格式有問題,你再自己核對下uj5u.com熱心網友回復:
能告訴我哪些引數是必填的嗎?
uj5u.com熱心網友回復:
微信檔案上有轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/92814.html
標籤:微信開發
上一篇:Android MediaCodec NV21轉YUV420 編碼后花屏、粉屏
下一篇:S8A電信4G教程
