- 获取直播间列表和回放接口传入指定直播间id和回放标识查不到指定直播间的信息?
直播间列表有72这个直播间,状态为103已结束,但是按照下面的参数查询时,查不到指定直播间的信息,只能查到回放列表,想问问是不返回回放列表吗还是什么原因呢? 请求地址 https://api.weixin.qq.com/wxa/business/getliveinfo?access_token=64_fnua2CVJI7Gs74WO8HUy8ffMZrTxB8y3s39WtgfHQ12NLjO5hHIHrT5uT0rtSV7n3VUdIYJJCTb32ZHBARJrSAL8kMpx1vc4bi6fSaz3X77RUwXCTD8fMSKM0-EZDHgAJAVZD 请求体 { "start": 0, "limit": 1, "action": "get_replay", "room_id": 72 } 返回结果 { "errcode": 0, "errmsg": "ok", "room_info": [], "total": 1, "live_replay": [ { "create_time": "2022-12-30T02:51:32Z", "expire_time": "2023-12-30T02:51:32Z", "media_url": "http://1258344707.vod2.myqcloud.com/1b87576bvodcq1258344707/28d253b7243791578006745734/playlist_eof.m3u8" }, { "create_time": "2106-02-07T14:28:15", "expire_time": "2116-02-05T14:28:15", "media_url": "http://1258344707.vod2.myqcloud.com/1b87576bvodcq1258344707/02970b3f243791577943547247/playlist.f3.m3u8" } ] }
2023-01-03 - Java新增临时素材提示media data missing
2022-12-29 15:11:09.053 [http-nio-21111-exec-1] INFO n.s.f.w.s.r.HttpClientService [executePostFormData:313] - http post 上传文件 请求url:https://api.weixin.qq.com/cgi-bin/media/upload?access_token=64_aslJtoIlWLkfdj5LajPZbkvcM9Oop6cqMuCdXiepThCLgutJpM_vfNJ9F7ETAhSj0KCTbZfxY_-HaHkEzvG4oAgig5UhTVosISGnlJ8DpPRWhPmK_7Q7c0LLZMkBQKeABAPEY&type=image, param:{access_token=64_aslJtoIlWLkfdj5LajPZbkvcM9Oop6cqMuCdXiepThCLgutJpM_vfNJ9F7ETAhSj0KCTbZfxY_-HaHkEzvG4oAgig5UhTVosISGnlJ8DpPRWhPmK_7Q7c0LLZMkBQKeABAPEY, type=image}, header:null,body:media 2022-12-29 15:11:09.839 [http-nio-21111-exec-1] INFO n.s.f.w.s.r.HttpClientService [executePostFormData:321] - http post 上传文件 返回原始值 result:{"errcode":41005,"errmsg":"media data missing hint: [C2uS0869p448] rid: 63ad3d8d-7090d9a6-1cb04ba0"} /** * POST请求form-data处理上传文件 * * @param <T> * @param url 地址 * @param header 请求头 * @param paramMap 请求参数 * @param fileParamName 请求体的参数名 * @param file 文件 * @param clazz 返回的类型 * @return */ public <T> T executePostFormData(String url, Map<String, String> header, Map<String, Object> paramMap, String fileParamName, File file, Class<T> clazz) { CloseableHttpResponse response = null; T responseResult = null; try { URIBuilder uriBuilder = new URIBuilder(url); // 判断请求参数不为空 if (paramMap != null) { for (Map.Entry<String, Object> entry : paramMap.entrySet()) { uriBuilder.setParameter(entry.getKey(), entry.getValue().toString()); } } HttpPost httpPost = new HttpPost(uriBuilder.build()); // 判断请求头不为空 if (header != null && header.size() > 0) { header.forEach(httpPost::addHeader); } // 构建请求体 MultipartEntityBuilder builder = MultipartEntityBuilder.create(); // 设置浏览器兼容模式 builder.setMode(HttpMultipartMode.BROWSER_COMPATIBLE); // 设置请求的编码格式 builder.setCharset(Consts.UTF_8); builder.setContentType(ContentType.MULTIPART_FORM_DATA); // 添加文件 builder.addBinaryBody(fileParamName, file); HttpEntity reqEntity = builder.build(); httpPost.setEntity(reqEntity); // 使用HttpClient发起请求,返回response log.info("http post 上传文件 请求url:{}, param:{}, body:{}", httpPost.getURI(), paramMap, fileParamName); response = httpClient.execute(httpPost); if (response == null) { return null; } String result = EntityUtils.toString(response.getEntity(), Charset.forName(DEFAULT_ENCODE)); log.info("http post 上传文件 返回原始值 result:{}", result); if (StringUtils.isNotEmpty(result)) { responseResult = JSON.parseObject(result, clazz); } } catch (Exception e) { log.error("executePost error", e); } finally { if (response != null) { EntityUtils.consumeQuietly(response.getEntity()); } } // 返回结果 return responseResult; }
2022-12-29 - 请问小程序直播相关功能有回调吗?
https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/livebroadcast/commodity-management/getGoodsAuditInfo.html
2022-12-26 - 自定义交易组件,选择无需物流发货,在订单中心显示未发货?
默认创建订单时,delivery_type选的是正常快递,在选择无需物流发货时,重新调用创建订单接口,将delivery_type改为无需快递,然后调用发货接口,调用查询订单接口,status显示为100,但是在订单中心显示状态还是待发货。 [图片] 请求地址: https://api.weixin.qq.com/shop/order/get?access_token=54_I0rV4ChpsY7RS5BZpLkj3lmiVXc2hOXJbzPmceA1JbS3DZEeMX5Nu1TgWhDaZlNVFMDPrTJa1JG3sSVRGN-JHCUfzkswJZJVqk-9UzcxllMqq8nCMUIG58zdE5-iCeL-KKf72aszEg5hFN_4UEGfAKDEOQ 请求体: { "out_order_id": "1861", "openid": "oITYd5Pnjlr_UdMhF1xT7Nr_vFLU" } 返回结果: { "errcode": 0, "order": { "order_id": 3301541363568738816, "out_order_id": "1861", "openid": "oITYd5Pnjlr_UdMhF1xT7Nr_vFLU", "create_time": "2022-02-26 06:05:12", "order_detail": { "product_infos": [ { "product_id": 418787079, "out_product_id": "2299", "out_sku_id": "11444", "product_cnt": 1, "sale_price": 2, "title": "鲜花特惠", "head_img": "https://img2.super0.net/aYtIWOeznDwbEWhAJpng3y7lLevkAKwg.jpg?imageView2/1/w/228/h/228/", "path": "/pages/online/goods_detail?id=2299", "sku_attrs": [] } ], "pay_info": { "prepay_id": "wx26180511727441652c2365bdf0cc1b0000", "prepay_time": "2022-02-26 06:05:11", "transaction_id": "4200001334202202269158891998", "pay_time": "2022-02-26 18:05:24", "pay_method_type": 0 }, "price_info": { "freight": 0, "discounted_price": 0, "additional_price": 0, "additional_remarks": "积分抵扣", "final_price": 2, "order_price": 1 }, "pay_info_list": [], "promotion_info": { "promoter_id": "GJ-I60cK18CDxKKFWq0CZH6b3lnYUBJB51mnjHqMCPA" } }, "delivery_detail": { "delivery_type": 2, "finish_all_delivery": 1, "delivery_list": [] }, "status": 100, "path": "/pages/mine/order_detail?id=1861", "update_time": "2022-02-26 18:06:01", "address_info": { "receiver_name": "liu", "detailed_address": "101", "tel_number": "18617076231", "country": "中国", "province": "北京市", "city": "北京市", "town": "东城区" }, "order_type": 0 } }
2022-02-28 - 自定义交易组件上传商品该如何设置回调?
wx-java,4.2.0, 接口文档:https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/public/upload_img.html
2022-02-18