- 下载账单提示应答的微信支付签名验证失败?
下载账单的应答的微信支付签名验证失败,其他的请求都是正常的, 账单的url /v3/billdownload/file?token=catALMjntYevGsYQ_40Ee_Gj1vVlQhDl6OV1nyE7Tns 签名时,将?token=catALMjntYevGsYQ_40Ee_Gj1vVlQhDl6OV1nyE7Tns一块签名还是怎么
2020-04-10 - 同一个商户进件多次,其他的怎么删除?
调用接口https://api.mch.weixin.qq.com/v3/ecommerce/applyments/进行二级商户进件时,调用了多次产生了3个申请单,如何删除多余的
2020-04-03 - 平台私钥解密失败?
商户进件请求返回返回内容:{"code":"PARAM_ERROR","message":"平台私钥解密失败"}
2020-03-31 - 平台私钥解密失败?
商户进件请求返回 {"code":"PARAM_ERROR","message":"平台私钥解密失败"}
2020-03-30 - 商户进件参数错误?
{"code":"PARAM_ERROR","detail":{"field":"/business_license_info","location":"body","value":[{"business_license_copy":"NLUJI4j_0VESWBtCG0--BOG7VyGGemRR9P87V0lXQlUC9nuCvyyG49wdi6CP50BQKbc7XyeSVu8kzJTJncBBfK9LG-xHz49fOuTSBLzAAx8","business_license_number":"91410103MA45D7JH9N","business_time":"[\"2018-06-20\",\"长期\"]","company_address":"***高新技术产业开发区红叶路000号11幢14单元16层2322号","legal_person":"张山","merchant_name":"河南伯尔尼电子科技有限公司"}]},"message":"无法将传入参数“营业执照信息”转换为子消息。"}
2020-03-30 - 下载省市区编号对照表打开提示文件损坏?
下载省市区编号对照表excel打开提示文件损坏?
2020-03-27 - 合单支付API中参数?
合单下单APP支付API中的示例参数为啥没有combine_appid这个变量,但是这个参数是必填
2020-03-26 - V3图片上传API,提示签名错误,找不到问题所在
public String postFileMultiPart(String data,Map<String, ContentBody> reqParam) throws IOException { HttpPost httpPost = new HttpPost( "https://api.mch.weixin.qq.com/v3/merchant/media/upload"); StringEntity strEntity = new StringEntity( data, ContentType.create("application/json", "utf-8")); httpPost.setEntity(strEntity); MultipartEntityBuilder multipartEntityBuilder = MultipartEntityBuilder.create(); for(Map.Entry<String,ContentBody> param : reqParam.entrySet()){ multipartEntityBuilder.addPart(param.getKey(), param.getValue()); } HttpEntity reqEntity = multipartEntityBuilder.build(); httpPost.setEntity(reqEntity); // httpPost.addHeader("Accept", "application/json"); httpPost.addHeader("Accept", "application/json"); CloseableHttpResponse response = httpClient.execute(httpPost); assertTrue(response.getStatusLine().getStatusCode() != 401); try { HttpEntity entity2 = response.getEntity(); // do something useful with the response body // and ensure it is fully consumed EntityUtils.consume(entity2); if (entity2 != null) { String res=EntityUtils.toString(entity2, Charset.forName("UTF-8")); System.out.println(res); return res; } } finally { response.close(); } return null; } public static void main(String[] args) { try { // WxHttpClient.getInstance().postNonRepeatableEntityTest(); File file = new File("D:\\HomeLogoA.png"); FileInputStream fileInputStream = new FileInputStream(file); String hex = new DigestUtils("SHA-256").digestAsHex(file); System.out.println(hex); String localFileName = "E:/2.jpg"; String data = "{\n" + "\"filename\": \"HomeLogoA.png\",\n" + "\"sha256\": \"367a353ff0a7777f1a122dc9576460fbb662434d7f83d514f585df667b8a6015\"\n" + "}"; Map<String,ContentBody> reqParam = new HashMap<String,ContentBody>(); reqParam.put("meta", new StringBody(data, ContentType.APPLICATION_JSON)); reqParam.put("file", new FileBody(file)); WxHttpClient.getInstance().postFileMultiPart(data,reqParam); // WxHttpClient.getInstance().postNonRepeatableEntityTest(); } catch (IOException e) { e.printStackTrace(); } } "{"code":"SIGN_ERROR","detail":{"detail":{"issue":"sign not match"},"field":"signature","location":"authorization","sign_information":{"method":"POST","sign_message_length":185,"truncated_sign_message":"POST\n/v3/merchant/media/upload\n1585041402\ncVPpueKiBckXFwPpCOCoeQTPvIdPmy1Z\n{\n\"filen\n","url":"/v3/merchant/media/upload"}},"message":"[0xe9][0x94][0x99][0xe8][0xaf][0xaf][0xe7][0x9a][0x84][0xe7][0xad][0xbe][0xe5][0x90][0x8d][0xef][0xbc][0x8c][0xe9][0xaa][0x8c][0xe7][0xad][0xbe][0xe5][0xa4][0xb1][0xe8][0xb4][0xa5]"}" 401错误代码
2020-03-24