当前文档下的接口
https://api.weixin.qq.com/wxaapi/newtmpl/addtemplate?access_token=ACCESS_TOKEN
在api调用的时候,微信端返回的是{"errcode":-1,"errmsg":"system error rid: 61bae94c-07b1dbc7-39fc6e5b"}
这个并不在已知的返回码中
"tid""2621""kidList"1510215"sceneDesc""活动开始啦"}
d代码如下:
string _url = "https://api.weixin.qq.com/wxaapi/newtmpl/addtemplate?access_token=" + AccessToken;
string jsonParam = "{\"tid\": \"" + Dic["TemplateID"] + "\",\"kidList\": " + KidList + "";
if (!string.IsNullOrEmpty(Dic["SceneDesc"]))
{
jsonParam += ",\"sceneDesc\": \"" + Dic["SceneDesc"] + "\"";
}
jsonParam += "}";
#region
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(_url);
request.Method = "POST";
request.Timeout = 5000;
request.ContentType = "application/json;charset=UTF-8";
byte[] byteData = Encoding.UTF8.GetBytes(jsonParam);
int length = byteData.Length;
request.ContentLength = length;
using (Stream writer = request.GetRequestStream())
{
writer.Write(byteData, 0, length);
writer.Close();
}
string jsonStrings = string.Empty;
using (HttpWebResponse responses = (HttpWebResponse)request.GetResponse())
{
using (Stream streams = responses.GetResponseStream())
{
using (StreamReader readers = new StreamReader(streams, System.Text.Encoding.UTF8))
{
jsonStrings = readers.ReadToEnd();
responses.Close();
streams.Close();
readers.Close();
}
}
}
#endregion
以
你好,目前还有这个问题吗