Commit 6fe62a9c authored by mengcuiguang's avatar mengcuiguang

珊瑚广告添加金币,改为后台提供

parent 889c7895
...@@ -8,8 +8,6 @@ import com.mints.goodmoney.common.AppConfig ...@@ -8,8 +8,6 @@ import com.mints.goodmoney.common.AppConfig
import com.mints.goodmoney.common.Constant import com.mints.goodmoney.common.Constant
import com.mints.goodmoney.manager.TrackManager import com.mints.goodmoney.manager.TrackManager
import com.mints.goodmoney.manager.UserManager import com.mints.goodmoney.manager.UserManager
import com.mints.goodmoney.mvp.presenters.TzVideoAdPresenter
import com.mints.goodmoney.mvp.views.VideoAdManagerView
import com.mints.goodmoney.utils.LogUtil import com.mints.goodmoney.utils.LogUtil
import com.mints.goodmoney.utils.MD5 import com.mints.goodmoney.utils.MD5
import com.mints.library.utils.json.JsonUtil import com.mints.library.utils.json.JsonUtil
...@@ -27,11 +25,10 @@ private val TAG = ShVideoAdManager::class.java.simpleName ...@@ -27,11 +25,10 @@ private val TAG = ShVideoAdManager::class.java.simpleName
* 天卓珊瑚广告视频 * 天卓珊瑚广告视频
*/ */
class ShVideoAdManager private constructor(activity: Activity) : class ShVideoAdManager private constructor(activity: Activity) :
BaseVideoAd(activity), VideoAdManagerView { BaseVideoAd(activity) {
private var isClickScreen: Boolean = true private var isClickScreen: Boolean = true
private var tzVideoAdPresenter: TzVideoAdPresenter? = null
private var shVideoAdListener: ShVideoAdListener? = null private var shVideoAdListener: ShVideoAdListener? = null
private lateinit var ps: AppPreferences private lateinit var ps: AppPreferences
...@@ -63,8 +60,6 @@ class ShVideoAdManager private constructor(activity: Activity) : ...@@ -63,8 +60,6 @@ class ShVideoAdManager private constructor(activity: Activity) :
private fun init(activity: Activity) { private fun init(activity: Activity) {
this.activity = activity this.activity = activity
ps = AppPreferences(activity) ps = AppPreferences(activity)
tzVideoAdPresenter = TzVideoAdPresenter()
tzVideoAdPresenter?.attachView(this)
} }
override fun loadAd(activity: Activity, curCoin: Int, carrierType: String, extraId: String?) { override fun loadAd(activity: Activity, curCoin: Int, carrierType: String, extraId: String?) {
...@@ -169,9 +164,6 @@ class ShVideoAdManager private constructor(activity: Activity) : ...@@ -169,9 +164,6 @@ class ShVideoAdManager private constructor(activity: Activity) :
override fun onVideoClosed(@Nullable coralAD: CoralAD?, @Nullable s: String?): Boolean { override fun onVideoClosed(@Nullable coralAD: CoralAD?, @Nullable s: String?): Boolean {
LogUtil.d(TAG, "onVideoClosed") LogUtil.d(TAG, "onVideoClosed")
tzVideoAdPresenter?.reportAddCoinMsg(activity, getAdMapVO(carrierType, Constant.AD_SOURCE_SH, extraId, curCoin))
TrackManager.getInstance().addCallImp(Constant.AD_SOURCE_SH, Constant.EVENT_TYPE_THREE, "", "") TrackManager.getInstance().addCallImp(Constant.AD_SOURCE_SH, Constant.EVENT_TYPE_THREE, "", "")
if (shVideoAdListener != null) { if (shVideoAdListener != null) {
...@@ -195,10 +187,6 @@ class ShVideoAdManager private constructor(activity: Activity) : ...@@ -195,10 +187,6 @@ class ShVideoAdManager private constructor(activity: Activity) :
} }
override fun onDestroy() { override fun onDestroy() {
tzVideoAdPresenter?.let {
it.dispose()
it.detachView()
}
activity = null activity = null
} }
......
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