激励视频收益 传递 到 大额体现
This commit is contained in:
parent
2c0a52ec48
commit
f5a81c6b61
|
|
@ -60,7 +60,7 @@ object VidiConst {
|
|||
|
||||
const val DIAMOND_NUM_FOR_ONE_AD = 5
|
||||
const val WITHDRAW_SMALL_NUM = 0.1F
|
||||
|
||||
const val WITHDRAW_REWARD_AD_REVENUE_PERCENT = 0.3F
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,6 @@ class WatchAdActivity : AppViewsEmptyViewModelActivity<ViewBinding>(), OnTabStyl
|
|||
private fun notifyAdWatchFinish() {
|
||||
var notifyEventType = 0
|
||||
var notifyData: NotifyMan.NotifyData<Any> = NotifyMan.NotifyData()
|
||||
var earnMoneyNum = 0.1F
|
||||
var shouldNotifyOneAdWatched = true
|
||||
|
||||
|
||||
|
|
@ -76,7 +75,7 @@ class WatchAdActivity : AppViewsEmptyViewModelActivity<ViewBinding>(), OnTabStyl
|
|||
val extraData = mExtraJsonStr?.let {
|
||||
AndroidUtil.json2Object<Float>(mExtraJsonStr!!)
|
||||
}
|
||||
notifyData.mData = WatchAdNotifyBean(earnMoneyNum, extraData)
|
||||
notifyData.mData = WatchAdNotifyBean(mRewardedDollarNum, extraData)
|
||||
}
|
||||
|
||||
VidiConst.WATCH_AD_FOR_WITHDRAW_BIG -> {
|
||||
|
|
@ -86,7 +85,7 @@ class WatchAdActivity : AppViewsEmptyViewModelActivity<ViewBinding>(), OnTabStyl
|
|||
val extraData = mExtraJsonStr?.let {
|
||||
AndroidUtil.json2Object<WithdrawItemBean>(mExtraJsonStr!!)
|
||||
}
|
||||
notifyData.mData = WatchAdNotifyBean(earnMoneyNum, extraData)
|
||||
notifyData.mData = WatchAdNotifyBean(mRewardedDollarNum, extraData)
|
||||
}
|
||||
|
||||
VidiConst.WATCH_AD_FOR_BOX_TASK -> {
|
||||
|
|
|
|||
|
|
@ -284,7 +284,7 @@ class WithDrawSubActivity : AppViewsEmptyViewModelActivity<ViewBinding>() {
|
|||
private fun handleAdWatched(adNotifyBean: WatchAdNotifyBean<WithdrawItemBean>) {
|
||||
val withdrawItemBean = adNotifyBean.extraData
|
||||
if (WithdrawManager.instance().addAdEarnForSubBean(withdrawItemBean.index,
|
||||
mSelectingIndex, adNotifyBean.earnMoneyNum)) {
|
||||
mSelectingIndex, adNotifyBean.earnMoneyNum * VidiConst.WITHDRAW_REWARD_AD_REVENUE_PERCENT)) {
|
||||
updateUI()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue