mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-04-05 17:38:05 +08:00
🎨 修复小程序直播接口获取不到部分字段值的问题
This commit is contained in:
parent
10c4d45f91
commit
1650ee2e20
@ -9,7 +9,6 @@ import com.google.common.base.Joiner;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.google.gson.JsonArray;
|
||||
import com.google.gson.JsonObject;
|
||||
import com.google.gson.JsonParser;
|
||||
import lombok.AllArgsConstructor;
|
||||
import me.chanjar.weixin.common.WxType;
|
||||
import me.chanjar.weixin.common.error.WxError;
|
||||
@ -30,8 +29,7 @@ import java.util.Map;
|
||||
*/
|
||||
@AllArgsConstructor
|
||||
public class WxMaLiveGoodsServiceImpl implements WxMaLiveGoodsService {
|
||||
|
||||
private WxMaService wxMaService;
|
||||
private final WxMaService wxMaService;
|
||||
|
||||
@Override
|
||||
public WxMaLiveResult addGoods(WxMaLiveInfo.Goods goods) throws WxErrorException {
|
||||
|
@ -49,8 +49,16 @@ public class WxMaLiveResult implements Serializable {
|
||||
private static final long serialVersionUID = 5769245932149287574L;
|
||||
@SerializedName("goods_id")
|
||||
private Integer goodsId;
|
||||
/**
|
||||
* 获取商品列表返回的商品图片
|
||||
*/
|
||||
@SerializedName("cover_img_url")
|
||||
private String coverImgUrl;
|
||||
/**
|
||||
* 获取直播间列表返回的商品图片
|
||||
*/
|
||||
@SerializedName("cover_img")
|
||||
private String coverImg;
|
||||
private String name;
|
||||
private String url;
|
||||
@SerializedName("price_type")
|
||||
@ -76,7 +84,8 @@ public class WxMaLiveResult implements Serializable {
|
||||
public static class RoomInfo implements Serializable {
|
||||
private static final long serialVersionUID = 7745775280267417154L;
|
||||
private String name;
|
||||
private Integer roomid;
|
||||
@SerializedName("roomid")
|
||||
private Integer roomId;
|
||||
@SerializedName("cover_img")
|
||||
private String coverImg;
|
||||
@SerializedName("share_img")
|
||||
@ -102,7 +111,7 @@ public class WxMaLiveResult implements Serializable {
|
||||
private Integer closeGoods;
|
||||
@SerializedName("close_comment")
|
||||
private Integer closeComment;
|
||||
private List<WxMaLiveInfo.Goods> goods;
|
||||
private List<Goods> goods;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user