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");
怎么个乱码