埋点配置

This commit is contained in:
18401019693 2023-09-06 14:40:45 +08:00
parent fc63cbbf50
commit a4895df622
2 changed files with 29 additions and 1 deletions

View File

@ -5,7 +5,7 @@ ext {
minSdkVersion : 21, minSdkVersion : 21,
targetSdkVersion : 33, targetSdkVersion : 33,
versionCode : 447, versionCode : 447,
versionName : "6.5.4" versionName : "6.5.5"
] ]
manifestPlaceholders = [ manifestPlaceholders = [
// //

View File

@ -634,6 +634,34 @@ public class LiveGiftPopup extends AbsDialogFragment {
} }
if (!isWrap) { if (!isWrap) {
liveGiftModel.setBlindBoxTicket(liveGiftModel.getBlindBoxTicket() - 1); liveGiftModel.setBlindBoxTicket(liveGiftModel.getBlindBoxTicket() - 1);
} else {
for (int i = 0; i < liveGiftList.size(); i++) {
JSONObject data = liveGiftList.getJSONObject(i);
String giftJson = data.getString("giftlist");
List<LiveGiftBean> liveGiftBeans = JSONArray.parseArray(giftJson, LiveGiftBean.class);
List<LiveGiftBean> liveGiftModels = new ArrayList<>();
for (LiveGiftBean model : liveGiftBeans) {
if (model.getBlindBoxTicketId() == liveGiftModel.getId() && model.getBlindBoxTicket() > 0) {
model.setBlindBoxTicket(model.getBlindBoxTicket() - 1);
}
liveGiftModels.add(model);
}
liveGiftList.getJSONObject(i).put("giftlist", JSONArray.toJSONString(liveGiftModels));
}
LiveHttpUtil.getNewGiftList(new HttpCallback() {
@Override
public void onSuccess(int code, String msg, String[] info) {
if (code == 0 && info.length > 0) {
JSONObject obj = JSON.parseObject(info[0]);
liveGiftList = obj.getJSONArray("listarray");
CommonAppConfig.getInstance().setGiftListJson(obj.getString("listarray"));
}
}
@Override
public void onFinish() {
}
});
} }
isGetNewWrap = true; isGetNewWrap = true;
if (isWrap) { if (isWrap) {