- 微信第三方平台api,获取服务商结算收入数据为啥报错1736?
JSONObject jsonObject1 = new JSONObject(); jsonObject1.put("page", page); jsonObject1.put("page_size", page_size); jsonObject1.put("start_date", start_date); jsonObject1.put("end_date", end_date); String component_access_token = componentAccessToken.getComponent_access_token(); String url = "https://api.weixin.qq.com/wxa/operationams?action=get_agency_settled_revenue&access_token=" + component_access_token; HttpResponse resp = HttpRequest.post(url).body(jsonObject1.toString()).execute(); [图片] 官方文档地址:https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/ams/settlement/GetAgencySettlement.html 感觉没啥问题,为啥报错了,四个参数风别是1,50,"2023-9-24","2023-10-24" component_access_token :令牌是第三方平台appid和第三方Secret,还有票据然后请求微信获取的令牌 求解/(ㄒoㄒ)/~~
2023-10-24 - 微信支付消费者投诉图片请求接口,为啥一直提示我参数错误?
[图片] [图片] 求大神求解(保佑),java服务商版本,官方文档:https://pay.weixin.qq.com/docs/partner/apis/consumer-complaint/images/query-images.html
2023-10-20 - 微信支付消费者投诉上传图片接口 /images/upload获取media_id为什么是这种格式呀?
@PostMapping("upload_feedback_images") public LexJSONResult feedbackUploadImages( @RequestParam("file") MultipartFile file, HttpServletRequest request) throws Exception { log.info("【商户PC】1.17.7 图片上传接口"); String token = request.getHeader("token"); String clerkid = request.getHeader("clerkid"); if (!chekToken.isToken(token, clerkid, 11)) { return LexJSONResult.errorTokenMsg("token错误!"); } File file1 = FileHeUtils.multipartFileToFile(file); System.out.println(file); System.out.println(file1); byte[] sha256 = DigestUtil.sha256(file1); JSONObject meta = new JSONObject(); meta.put("filename", file.getOriginalFilename()); meta.put("sha256", sha256); JSONObject body = new JSONObject(); body.put("file", file); body.put("meta", meta); String url = "https://api.mch.weixin.qq.com/v3/merchant-service/images/upload"; String Authorization = SignV3Utils.getSign("POST", url, meta.toString()); HashMap<String, String> header = new HashMap<>(); header.put("Authorization", Authorization); header.put("Accept", "application/json"); header.put("Content-Type", "multipart/form-data"); HttpResponse resp = HttpRequest.post(url).form("file", file1).form("meta", meta).addHeaders(header).execute(); String result = resp.body(); JSONObject jsonObject = JSON.parseObject(result); if (resp.getStatus() == 200) { return LexJSONResult.ok(jsonObject); } return LexJSONResult.build(201, null, jsonObject); } [图片]、 这个media_id也调不了图片请求接口,为啥,求大神求解(保佑)
2023-10-19