public JsonObject getProductDetail(String token, String orderId) throws IOException {
JsonObject body = new JsonObject();
body.addProperty("order_id", orderId);
//ORDER_DETAIL_API ="https://api.weixin.qq.com/channels/ec/order/get";
String url=ORDER_DETAIL_API+"?access_token=" + token;
System.out.println(url);
return postRequest(url, body);
}
并且这个token是通过 https://api.weixin.qq.com/cgi-bin/stable_token 这个接口获取到的,而且token可以拿到商品列表和订单列表,详情就是失效

用postman请求微信接口截个图