| | |
| | | DataRecordPack.DR_CTGError(curPlayer, "The orderCoin is not equal to the ipyData's RMB(%s)!" % payRMBNum, addDRDict)
|
| | | return
|
| | |
|
| | | # 港台0.1折特殊处理:游戏内部逻辑按原版原价处理,所以验证完金额后需要乘100
|
| | | orderCoin *= 100
|
| | | addDRDict["orderCoin"] = orderCoin
|
| | | |
| | | addGold, prizeGold, giveItemList, ctgIpyData = 0, 0, [], None
|
| | |
|
| | | if ipyData.GetCTGID():
|
| | |
| | | if not ctgRealFirstTime:
|
| | | ctgRealFirstTime = int(time.time())
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CTGRealFirstTime, ctgRealFirstTime)
|
| | | ctgRealToday += orderCoin
|
| | | ctgRealToday = min(ctgRealToday + orderCoin, ChConfig.Def_UpperLimit_DWord)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CTGRealToday, ctgRealToday)
|
| | | ctgRealTotal += orderCoin
|
| | | ctgRealTotal = min(ctgRealTotal + orderCoin, ChConfig.Def_UpperLimit_DWord)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CTGRealTotal, ctgRealTotal)
|
| | |
|
| | | notifyMark = ctgIpyData.GetNotifyMark() if ctgIpyData else ""
|
| | |
| | | PlayerVip.AddVIPExp(curPlayer, addVIPExp)
|
| | |
|
| | | changeCoinPointBefore = curPlayer.GetChangeCoinPointTotal()
|
| | | curPlayer.SetChangeCoinPointTotal(changeCoinPointBefore + orderCoin, 0)
|
| | | curPlayer.SetChangeCoinPointTotal(min(changeCoinPointBefore + orderCoin, ChConfig.Def_UpperLimit_DWord), 0)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_FirstGoldTry, 0)
|
| | |
|
| | | todayCTGCoinTotal = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_TodayCTGCoinTotal) + orderCoin
|
| | | todayCTGCoinTotal = min(curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_TodayCTGCoinTotal) + orderCoin, ChConfig.Def_UpperLimit_DWord)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TodayCTGCoinTotal, todayCTGCoinTotal)
|
| | |
|
| | | goldAfter = curPlayer.GetGold()
|