已解决,间连使用channel_id,直连使用sp_mchid
扫码点餐业务同步订单提示:sp_mchid与sub_mchid绑定关系不合法点餐订单信息同步(服务商) https://pay.weixin.qq.com/wiki/doc/apiv3/catering.php?chapter=26_1&index=1 间连商户,调用该接口返回: { "code":"INVALID_REQUEST", "message":"sp_mchid与sub_mchid绑定关系不合法", "detail":{ "field":"sub_mchid", "value":"395407112", "issue":"sp_mchid and sub_mchid bind relation is invalid" } } 通过间连提供的服务商ID能够查到对应的商家信息不确定这个是啥问题
2021-08-03已经解决
小微进件 图片上传:参数填写有误,请检查后重试?接口:https://pay.weixin.qq.com/wiki/doc/api/xiaowei.php?chapter=19_9 语言:C#(DotNetCore2.2) 使用MultipartFormDataContent var mulFormDataContent = new MultipartFormDataContent("7db1851cd1158"); foreach (var item in sortedDic) { var sContent = new ByteArrayContent(Encoding.UTF8.GetBytes(item.Value)); sContent.Headers.ContentDisposition = new System.Net.Http.Headers.ContentDispositionHeaderValue("form-data") { Name = $"\"{item.Key}\"", }; mulFormDataContent.Add(sContent); } var byteArrayContent = new ByteArrayContent(picRequest.ImageBytes); byteArrayContent.Headers.ContentDisposition = new System.Net.Http.Headers.ContentDispositionHeaderValue("form-data") { Name = "\"media\"", FileName = $"\"{picRequest.ImageName}\"", }; byteArrayContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/octet-stream"); byteArrayContent.Headers.ContentLength = picRequest.ImageBytes.Length; mulFormDataContent.Add(byteArrayContent); return mulFormDataContent; 最后结果: <xml><return_code><![CDATA[FAIL]]></return_code> <return_msg><![CDATA[参数填写有误,请检查后重试]]></return_msg> </xml>
2020-03-26