|
|
@@ -28,6 +28,7 @@ import com.adealink.weparty.commonui.widget.BottomDialogFragment
|
|
|
import com.adealink.weparty.effect.AnimExtraConfig
|
|
|
import com.adealink.weparty.module.operation.Operation
|
|
|
import com.adealink.weparty.module.operation.adapter.RechargeDailyAdapter
|
|
|
+import com.adealink.weparty.module.operation.data.ProductTypeConstant
|
|
|
import com.adealink.weparty.module.wallet.WalletModule
|
|
|
import com.adealink.weparty.module.wallet.data.Currency
|
|
|
import com.adealink.weparty.operation.R
|
|
|
@@ -158,7 +159,11 @@ class RechargeDailyFragment : BottomDialogFragment(R.layout.fragment_recharge_da
|
|
|
highestCoins += reward.taskDimensionTarget
|
|
|
if (reward.isTaskCompleted()) {
|
|
|
rechargeTotal = reward.taskDimensionProgress
|
|
|
- rewardTotal += reward.rewardNum
|
|
|
+ reward.rewardInfo.forEach { subReward ->
|
|
|
+ if (subReward.rewardResourceType == ProductTypeConstant.Coin.type) {
|
|
|
+ rewardTotal += subReward.rewardNum.toLong()
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
if (nextReceivedIndex == -1 && !reward.isTaskCompleted()) {
|
|
|
nextReceivedIndex = index
|