|
|
@@ -3705,6 +3705,16 @@ func (this *Role) payInfoGet(goodsType, goodsId, count int32, rushStage, rushRou
|
|
|
return serverproto.ErrorCode_ERROR_FAIL, nil
|
|
|
}
|
|
|
|
|
|
+ //检测是否有充值卡自动使用
|
|
|
+ num := this.GetItemNum(1)
|
|
|
+ if num > 0 {
|
|
|
+ cfgData, ok := serverproto.ItemCfgLoader[1]
|
|
|
+ if ok {
|
|
|
+ payRewardInfo.Amount -= float32(cfgData.NatureType)
|
|
|
+ }
|
|
|
+ this.roleBag.DelItemById(1, 1, AddFrom_System)
|
|
|
+ }
|
|
|
+
|
|
|
payRewardInfo.GoodsName = service.GetServiceConfig().Node.PayCallBack
|
|
|
return serverproto.ErrorCode_ERROR_OK, payRewardInfo
|
|
|
}
|