调用直播商品添加并审核的接口(https://api.weixin.qq.com/wxaapi/broadcast/goods/add?access_token=[access_token])时超时返回503,但小程序里的商品库已经生成重复的三个商品并处于审核中状态,如下图,通过接口添加的商品无法在小程序里手动删除,但由于之前接口返回的是503,我这边并无法记录auditId和goodsId,从而无法撤销审核或者删除商品,微信方也没有提供接口查询所有入库的商品Id(goodsId),现在的情况就是添加商品也不正常,删除也删除不,求解
必现的么?http请求发一下,包括headers。
public static string HttpPostByJson(string postUrl, string jsonData)
{
try
{
HttpWebRequest httpRequest = (HttpWebRequest)WebRequest.Create(postUrl);
httpRequest.Method = "POST"
httpRequest.ContentType = "application/json"
byte[] data = Encoding.UTF8.GetBytes(jsonData);
httpRequest.ContentLength = data.Length;
Stream requestStream = httpRequest.GetRequestStream();
requestStream.Write(data, 0, data.Length);
requestStream.Close();
Stream responseStream = null;
responseStream = httpRequest.GetResponse().GetResponseStream();
string stringResponse = string.Empty;
using (StreamReader responseReader = new StreamReader(responseStream, Encoding.GetEncoding("utf-8")))
{
stringResponse = responseReader.ReadToEnd();
}
responseStream.Close();
return stringResponse;
}
catch
{
throw;
}
}
麻烦检查是否有带这个http头,如果有请先去掉试下。
兄弟 能否看下你接口提交数据的格式啊 我老是返回我not fund