- 微信小店查询全量商品,返回信息为空?
参考接口使用文档: https://developers.weixin.qq.com/doc/ministore/union/access-guidelines/promoter/api/product/category.html#2.%E6%9F%A5%E8%AF%A2%E5%85%A8%E9%87%8F%E5%95%86%E5%93%81 使用以下代码发起 get 请求,返回数据中 productList 为空数组 {"errcode":0,"errmsg":"ok","productList":[],"total":29548,"next":20} static void getWxGoods() throws IOException { String url="https://api.weixin.qq.com/union/promoter/product/list"; Map<String, Object> params=new HashMap<>(); params.put("access_token","正确的token"); params.put("from","0"); params.put("limit","20"); params.put("query","牙膏"); System.out.println(params); try { doGet2(url,params); } catch (IOException e) { throw new RuntimeException(e); } }
2天前 - 微信小店查询全量商品,返回信息为空?
参考接口文档:https://developers.weixin.qq.com/doc/ministore/union/access-guidelines/promoter/api/product/category.html#2.%E6%9F%A5%E8%AF%A2%E5%85%A8%E9%87%8F%E5%95%86%E5%93%81 正常传入 access_token、from、limit、query,然后发起 get 请求,返回值信息 productList 为空数组 网络请求: [图片] 返回结果: {"errcode":0,"errmsg":"ok","productList":[],"total":29548,"next":20}
2天前