diff --git a/config.gradle b/config.gradle index 71e56fb63..3e1349d45 100644 --- a/config.gradle +++ b/config.gradle @@ -9,9 +9,9 @@ ext { ] manifestPlaceholders = [ //正式、 - serverHost : "https://napi.yaoulive.com", -// 测试 -// serverHost : " https://ceshi.yaoulive.com", +// serverHost : "https://napi.yaoulive.com", +// 测试 + serverHost : " https://ceshi.yaoulive.com", @@ -22,9 +22,9 @@ ext { baiduAppSecretKey: "nEVSgmuGpU0pjPr6VleEGGAl0hzGW52S", // true表示谷歌支付 false - isGooglePlay : true, + isGooglePlay : false, //是否上报异常日志 isUploadLog : true, //是否打包成插件包模式 - isPluginModel : false, ] + isPluginModel : true, ] } diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveGiftPopup.java b/live/src/main/java/com/yunbao/live/dialog/LiveGiftPopup.java index 403cbea4a..beaaf7759 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveGiftPopup.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveGiftPopup.java @@ -2,6 +2,7 @@ package com.yunbao.live.dialog; import static com.yunbao.common.CommonAppConfig.isGetNewWrap; import static com.yunbao.common.utils.RouteUtil.PATH_COIN; +import static com.yunbao.live.views.LiveRoomViewHolder.bean1; import android.annotation.SuppressLint; import android.app.Dialog; @@ -447,6 +448,16 @@ public class LiveGiftPopup extends AbsDialogFragment { GiftTopBean giftTopBean = new GiftTopBean(); giftTopBean.setName(data.getString("name")); name.add(giftTopBean); + if (bean1 != null && IMLoginManager.get(mContext).isNewUserGif() && (data.getString("name").equals("熱門") || data.getString("name").equals("Hot"))) { + String giftJson = data.getString("giftlist"); + List liveGiftBeans = JSONArray.parseArray(giftJson, LiveGiftBean.class); + liveGiftBeans.add(0, bean1); + if (mWishGiftId == null) { + mWishGiftId = "" + bean1.getId(); + } + liveGiftList.getJSONObject(i).put("giftlist", JSONArray.toJSONString(liveGiftBeans)); + } + } giftTitleAdapter.addAllData(name); if (!TextUtils.isEmpty(mWishGiftId) && liveGiftList.size() > 0) {