- 调用直播间上传商品接口,过去的商品是乱码问号,咋解决?
// 商品信息 JSONObject goodJson = new JSONObject(); goodJson.put("coverImgUrl", goodInfo.getCoverImgUrl()); goodJson.put("name", goodInfo.getName()); goodJson.put("priceType", goodInfo.getPriceType()); goodJson.put("price", goodInfo.getPrice()); if(Arrays.asList(2, 3).contains(goodInfo.getPriceType())){ goodJson.put("price2", goodInfo.getPrice2()); } goodJson.put("url", goodInfo.getUrl()); goodJson.put("goodsId", goodInfo.getGoodsId()); // 外层信息 JSONObject paramJson = new JSONObject(); paramJson.put("goodsInfo", goodJson); String requestResult = HttpUtils.doPost("https://api.weixin.qq.com/wxaapi/broadcast/goods/update?access_token="+accessToken, paramJson, "utf-8");
03-08 - 调用编辑直播间接口,报错2001?
新增都可以,编辑提示2001,没有对应的错误提示,
03-03 - 我要上传本地文件到微信服务器,然后获取mediaId,报错,不晓得咋回事?
// 获取accessToken String accessToken = wxTokenRedis.getToken(Constant.APPID, Constant.APPSECRET); String url = "https://api.weixin.qq.com/cgi-bin/media/upload?access_token=" + accessToken; // 请求头 HttpHeaders headers = new HttpHeaders(); headers.setContentType(MediaType.MULTIPART_FORM_DATA); // 请求体 MultiValueMap<String, Object> body = new LinkedMultiValueMap<>(); body.add("type", "image"); body.add("media", new InputStreamResource(file.getInputStream())); HttpEntity<MultiValueMap<String, Object>> requestEntity = new HttpEntity<>(body, headers); // 发送请求 ResponseEntity<String> response = restTemplate.postForEntity(url, requestEntity, String.class); return response.getBody(); 这样封装的,请求报错{"errcode":41005,"errmsg":"media data missing hint: [QI7QEA091134-0] rid: 67c27007-0cc128ba-73b651f9"},明明有传media,但是为啥报错呢
03-01 - java的demo都没有吗,,请求
https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/New_temporary_materials.html
03-01 - 微信小程序用户如何自定义直播?
我看文档里面有对应的api接口,,,想问问怎么收费的,比如直播的流量是咋个收费的
02-07 - 微信小程序用户如何自定义直播?
我们小程序是21年12月份注册的,现在想在这个小程序上面进行直播,只要是我们公司的顾客,都可以在这个小程序上面进行自定义直播,这个有方案吗?
02-06