修改盲盒问题
This commit is contained in:
parent
7201fd37f3
commit
067bbc70c5
@ -48,7 +48,7 @@ public class SendBlindGiftEvent extends BaseModel {
|
|||||||
@SerializedName("ispk")
|
@SerializedName("ispk")
|
||||||
private String ispk;
|
private String ispk;
|
||||||
@SerializedName("pkuid")
|
@SerializedName("pkuid")
|
||||||
private boolean pkuid;
|
private String pkuid;
|
||||||
@SerializedName("pkuid1")
|
@SerializedName("pkuid1")
|
||||||
private String pkuid1;
|
private String pkuid1;
|
||||||
@SerializedName("pkuid2")
|
@SerializedName("pkuid2")
|
||||||
@ -60,7 +60,7 @@ public class SendBlindGiftEvent extends BaseModel {
|
|||||||
@SerializedName("active_total")
|
@SerializedName("active_total")
|
||||||
private String activeTotal;
|
private String activeTotal;
|
||||||
@SerializedName("blind_box_status")
|
@SerializedName("blind_box_status")
|
||||||
private boolean blindBoxStatus;
|
private String blindBoxStatus;
|
||||||
@SerializedName("gift_id")
|
@SerializedName("gift_id")
|
||||||
private String giftId;
|
private String giftId;
|
||||||
@SerializedName("gift_type")
|
@SerializedName("gift_type")
|
||||||
@ -78,7 +78,7 @@ public class SendBlindGiftEvent extends BaseModel {
|
|||||||
@SerializedName("action")
|
@SerializedName("action")
|
||||||
private String action;
|
private String action;
|
||||||
@SerializedName("dress_notification")
|
@SerializedName("dress_notification")
|
||||||
private boolean dressNotification;
|
private String dressNotification;
|
||||||
@SerializedName("dress_type")
|
@SerializedName("dress_type")
|
||||||
private Object dressType;
|
private Object dressType;
|
||||||
@SerializedName("dress_id")
|
@SerializedName("dress_id")
|
||||||
@ -313,11 +313,11 @@ public class SendBlindGiftEvent extends BaseModel {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isPkuid() {
|
public String isPkuid() {
|
||||||
return pkuid;
|
return pkuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
public SendBlindGiftEvent setPkuid(boolean pkuid) {
|
public SendBlindGiftEvent setPkuid(String pkuid) {
|
||||||
this.pkuid = pkuid;
|
this.pkuid = pkuid;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -367,11 +367,11 @@ public class SendBlindGiftEvent extends BaseModel {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isBlindBoxStatus() {
|
public String isBlindBoxStatus() {
|
||||||
return blindBoxStatus;
|
return blindBoxStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
public SendBlindGiftEvent setBlindBoxStatus(boolean blindBoxStatus) {
|
public SendBlindGiftEvent setBlindBoxStatus(String blindBoxStatus) {
|
||||||
this.blindBoxStatus = blindBoxStatus;
|
this.blindBoxStatus = blindBoxStatus;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -449,11 +449,11 @@ public class SendBlindGiftEvent extends BaseModel {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isDressNotification() {
|
public String isDressNotification() {
|
||||||
return dressNotification;
|
return dressNotification;
|
||||||
}
|
}
|
||||||
|
|
||||||
public SendBlindGiftEvent setDressNotification(boolean dressNotification) {
|
public SendBlindGiftEvent setDressNotification(String dressNotification) {
|
||||||
this.dressNotification = dressNotification;
|
this.dressNotification = dressNotification;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -1011,17 +1011,17 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
|
|||||||
if (mTvGoldCoin != null) {
|
if (mTvGoldCoin != null) {
|
||||||
mTvGoldCoin.setText(goldCoin);
|
mTvGoldCoin.setText(goldCoin);
|
||||||
}
|
}
|
||||||
if (mContext != null && mGiftBean != null) {
|
// if (mContext != null && mGiftBean != null) {
|
||||||
((LiveActivity) mContext).onCoinChanged(coin);//
|
// ((LiveActivity) mContext).onCoinChanged(coin);//
|
||||||
if (by != null) {
|
// if (by != null) {
|
||||||
((LiveActivity) mContext).sendGiftMessage(mGiftBean, obj.getString("gifttoken")
|
// ((LiveActivity) mContext).sendGiftMessage(mGiftBean, obj.getString("gifttoken")
|
||||||
, obj.getString("ancherName"), "1");
|
// , obj.getString("ancherName"), "1");
|
||||||
} else {
|
// } else {
|
||||||
((LiveActivity) mContext).sendGiftMessage(mGiftBean, obj.getString("gifttoken")
|
// ((LiveActivity) mContext).sendGiftMessage(mGiftBean, obj.getString("gifttoken")
|
||||||
, obj.getString("ancherName"), "0");
|
// , obj.getString("ancherName"), "0");
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
}
|
// }
|
||||||
if (mLiveGiftBean.getType() == LiveGiftBean2.TYPE_NORMAL && !mLiveGiftBean.getSwf().contains("svga")) {
|
if (mLiveGiftBean.getType() == LiveGiftBean2.TYPE_NORMAL && !mLiveGiftBean.getSwf().contains("svga")) {
|
||||||
showLianBtn();
|
showLianBtn();
|
||||||
}
|
}
|
||||||
|
@ -1002,7 +1002,7 @@ public class SocketRyClient {
|
|||||||
// 玩家自己送礼物
|
// 玩家自己送礼物
|
||||||
private void sendGiftInSameRoom(JSONObject map) {
|
private void sendGiftInSameRoom(JSONObject map) {
|
||||||
String ctJson = map.getString("ct");
|
String ctJson = map.getString("ct");
|
||||||
SendBlindGiftEvent sendBlindGiftEvent = GsonUtils.fromJson(ctJson, SendBlindGiftEvent.class);
|
SendBlindGiftEvent sendBlindGiftEvent = JSON.parseObject(ctJson, SendBlindGiftEvent.class);
|
||||||
LiveReceiveGiftBean receiveGiftBean = JSON.parseObject(map.getString("ct"), LiveReceiveGiftBean.class);
|
LiveReceiveGiftBean receiveGiftBean = JSON.parseObject(map.getString("ct"), LiveReceiveGiftBean.class);
|
||||||
sendBlindGiftEvent.setUserNiceName(map.getString("uname"));
|
sendBlindGiftEvent.setUserNiceName(map.getString("uname"));
|
||||||
receiveGiftBean.setAvatar(map.getString("uhead") + "");
|
receiveGiftBean.setAvatar(map.getString("uhead") + "");
|
||||||
@ -1051,7 +1051,7 @@ public class SocketRyClient {
|
|||||||
try {
|
try {
|
||||||
if (!TextUtils.isEmpty(mLiveUid)) {
|
if (!TextUtils.isEmpty(mLiveUid)) {
|
||||||
if (mLiveUid.equals(map.getString("roomnum"))) {
|
if (mLiveUid.equals(map.getString("roomnum"))) {
|
||||||
mListener.onSendGift(receiveGiftBean, null);
|
mListener.onSendGift(receiveGiftBean, sendBlindGiftEvent);
|
||||||
mListener.onSendGiftPk(map.getLongValue("pktotal1"), map.getLongValue("pktotal2"), livePKUserListBean);
|
mListener.onSendGiftPk(map.getLongValue("pktotal1"), map.getLongValue("pktotal2"), livePKUserListBean);
|
||||||
} else {
|
} else {
|
||||||
mListener.onSendGiftPk(map.getLongValue("pktotal2"), map.getLongValue("pktotal1"), livePKUserListBean);
|
mListener.onSendGiftPk(map.getLongValue("pktotal2"), map.getLongValue("pktotal1"), livePKUserListBean);
|
||||||
|
Loading…
Reference in New Issue
Block a user