Commit 6194a20b authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 8db8efca
......@@ -15,6 +15,5 @@ object ChannelManager {
fun updataCodeIdForRegisterChannel(idBean: AdcodeBean?) {
TtCsjAdManager.updataIdByChannel(idBean)
YlhAdManager.updataIdByChannel(idBean)
CsjGroMoreManager.updataIdByChannel(idBean)
}
}
\ No newline at end of file
......@@ -3,6 +3,7 @@ package com.mints.goodmoney.manager
import android.text.TextUtils
import com.mints.goodmoney.MintsApplication
import com.mints.goodmoney.mvp.model.AdcodeBean
import com.mints.goodmoney.mvp.model.GroAdcodeBean
/**
......@@ -21,7 +22,7 @@ object CsjGroMoreManager {
/**
* 更新代码位
*/
fun updataIdByChannel(idBean: AdcodeBean?) {
fun updataIdByChannel(idBean: GroAdcodeBean?) {
// 渠道对象不为空
if (idBean != null) {
if (!TextUtils.isEmpty(idBean.groExpress)) {
......
......@@ -16,10 +16,6 @@ public class AdcodeBean implements Serializable {
private String ylhv2;//激励
private String key;
private String groExpress;
private String groSplash;
private String groVideo;
public String getCsjv1() {
return csjv1;
......@@ -45,18 +41,6 @@ public class AdcodeBean implements Serializable {
return ylhv2;
}
public String getGroExpress() {
return groExpress;
}
public String getGroSplash() {
return groSplash;
}
public String getGroVideo() {
return groVideo;
}
public String getKey() {
return key;
}
......
package com.mints.goodmoney.mvp.model;
import java.io.Serializable;
/**
* 用户渠道对应代码位
*/
public class GroAdcodeBean implements Serializable {
private String groExpress;
private String groSplash;
private String groVideo;
public String getGroExpress() {
return groExpress;
}
public String getGroSplash() {
return groSplash;
}
public String getGroVideo() {
return groVideo;
}
}
......@@ -12,6 +12,7 @@ public class UserTaskMsgBean implements Serializable {
private BlessingBigMsgBean blessingBigMsg;
private UserRiskAppsBean userRiskApps;
private AdcodeBean adcode_v1 = null;
private GroAdcodeBean gromoreAdcodes = null;
private FlowAdRulesBean flowAdRules;
private HighRatePlanBean highRatePlan;
......@@ -141,6 +142,10 @@ public class UserTaskMsgBean implements Serializable {
return highRatePlan;
}
public GroAdcodeBean getGromoreAdcodes() {
return gromoreAdcodes;
}
public void setHighRatePlan(HighRatePlanBean highRatePlan) {
this.highRatePlan = highRatePlan;
}
......
......@@ -248,6 +248,7 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
AppConfig.user_channel_ad = data.adcode.key
}
ChannelManager.updataCodeIdForRegisterChannel(data.adcode)
CsjGroMoreManager.updataIdByChannel(data.gromoreAdcodes)
// 新人福利 放到个人中心展示 防止首页红包转动异常
......
......@@ -355,6 +355,7 @@ class MyFragment : BaseFragment(),
AppConfig.user_channel_ad = data.adcode.key
}
ChannelManager.updataCodeIdForRegisterChannel(data.adcode)
CsjGroMoreManager.updataIdByChannel(data.gromoreAdcodes)
// 是否上报点击广告
AppConfig.needReportClickAdEvent = data.isNeedReportClickAdEvent
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment