Commit 57b037d4 authored by wangxuewei's avatar wangxuewei

[提交人]:王雪伟

[提交简述] :幸福农场
[实现方案] :修改渠道,换成正式环境
parent 80ea840b
...@@ -98,6 +98,7 @@ android { ...@@ -98,6 +98,7 @@ android {
yyb {} yyb {}
sougou {} sougou {}
toutiao {} toutiao {}
hykb{}
} }
productFlavors.all { productFlavors.all {
......
...@@ -29,7 +29,7 @@ class BaseApplication : MultiDexApplication() { ...@@ -29,7 +29,7 @@ class BaseApplication : MultiDexApplication() {
//第一步初始化 application //第一步初始化 application
AppliContext.init(this) AppliContext.init(this)
Config.init(this) Config.init(this)
NetConfig.setBase_Url(NetConfig.Environment.DEV)// TODO 上线之后提成成 NetConfig.Environment.PRODUCT NetConfig.setBase_Url(NetConfig.Environment.PRODUCT)// TODO 上线之后提成成 NetConfig.Environment.PRODUCT
Constant.appLs = "5ea353dac826a125 "//appls Constant.appLs = "5ea353dac826a125 "//appls
// //步行多多 广告id // //步行多多 广告id
......
...@@ -344,10 +344,8 @@ object CenterDialog : BaseDialog() { ...@@ -344,10 +344,8 @@ object CenterDialog : BaseDialog() {
Gravity.CENTER Gravity.CENTER
) )
val ivGetDropLoght = mDialogView?.findViewById<ImageView>(R.id.iv_get_drop_loght)
val ivGetDropBg = mDialogView?.findViewById<ImageView>(R.id.iv_get_drop_bg) val ivGetDropBg = mDialogView?.findViewById<ImageView>(R.id.iv_get_drop_bg)
val tvGetDropCount = mDialogView?.findViewById<TextView>(R.id.tv_get_drop_count) val tvGetDropCount = mDialogView?.findViewById<TextView>(R.id.tv_get_drop_count)
val layoutAd = mDialogView?.findViewById<FrameLayout>(R.id.layout_get_drop_ad)
// ivGetDropLoght.animation = AnimationUtils.loadAnimation(context, R.anim.rotate_anim_lib) // ivGetDropLoght.animation = AnimationUtils.loadAnimation(context, R.anim.rotate_anim_lib)
...@@ -356,31 +354,31 @@ object CenterDialog : BaseDialog() { ...@@ -356,31 +354,31 @@ object CenterDialog : BaseDialog() {
ivGetDropBg.setImageResource(R.drawable.icon_main_dialog_popupwater_icon_lib) ivGetDropBg.setImageResource(R.drawable.icon_main_dialog_popupwater_icon_lib)
} else if (type == 2) { } else if (type == 2) {
tvGetDropCount.text = "+${rewardCount}" tvGetDropCount.text = "+${rewardCount}"
ivGetDropBg.setImageResource(R.drawable.icon_main_dialog_popupwater_coin_lib) // ivGetDropBg.setImageResource(R.drawable.icon_main_dialog_popupwater_coin_lib)
} }
ToponManager.loadNative((context as Activity),layoutAd,object : ToponNativeListener { // ToponManager.loadNative((context as Activity),layoutAd,object : ToponNativeListener {
override fun onAdImpressed(atAdInf: ATAdInfo) { // override fun onAdImpressed(atAdInf: ATAdInfo) {
EventUtils.onEvent( // EventUtils.onEvent(
"ad_show", // "ad_show",
Utils.obj2Str(AdEntity(atAdInf.adNetworkType, AdID.mPlacementId_daily_task_finish_bigimage, "福利中心大图广告")) // Utils.obj2Str(AdEntity(atAdInf.adNetworkType, AdID.mPlacementId_daily_task_finish_bigimage, "福利中心大图广告"))
) // )
} // }
//
override fun onAdClicked(atAdInf: ATAdInfo, view: ATNativeAdView) { // override fun onAdClicked(atAdInf: ATAdInfo, view: ATNativeAdView) {
EventUtils.onEvent( // EventUtils.onEvent(
"ad_click", // "ad_click",
Utils.obj2Str(AdEntity(atAdInf.adNetworkType, AdID.mPlacementId_daily_task_finish_bigimage, "福利中心大图广告")) // Utils.obj2Str(AdEntity(atAdInf.adNetworkType, AdID.mPlacementId_daily_task_finish_bigimage, "福利中心大图广告"))
) // )
} // }
//
override fun onAdVideoStart() { // override fun onAdVideoStart() {
} // }
//
override fun onAdVideoEnd() { // override fun onAdVideoEnd() {
} // }
//
},AdID.mPlacementId_Reward_video_luck_farm) // },AdID.mPlacementId_Reward_video_luck_farm)
mDialogView.findViewById<TextView>(R.id.btn_get_drop_happy_accept).setOnClickListener { mDialogView.findViewById<TextView>(R.id.btn_get_drop_happy_accept).setOnClickListener {
mWebView?.loadUrl("javascript:onResume()") mWebView?.loadUrl("javascript:onResume()")
......
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