|
|
@@ -4026,7 +4026,8 @@ func (this *Role) OnPayCallback(payRewardInfo *serverproto.PayOrderSaveInfo, bSa
|
|
|
var addItemList = map[int32]int32{}
|
|
|
var itemlist = []*serverproto.KeyValueType{}
|
|
|
for idx := 0; idx < len(payRewardInfo.RewardList); idx++ {
|
|
|
- if bCash && (payRewardInfo.RewardList[idx].Key == int32(serverproto.ResType_Res_ROCoin) || payRewardInfo.RewardList[idx].Key == int32(serverproto.ResType_Res_VipExp)) {
|
|
|
+ isLastTwo := idx >= len(payRewardInfo.RewardList)-2
|
|
|
+ if bCash && (payRewardInfo.RewardList[idx].Key == int32(serverproto.ResType_Res_ROCoin) || payRewardInfo.RewardList[idx].Key == int32(serverproto.ResType_Res_VipExp)) && isLastTwo {
|
|
|
continue
|
|
|
}
|
|
|
addItemList[payRewardInfo.RewardList[idx].Key] += payRewardInfo.RewardList[idx].Value
|