cehua-TT
2018-11-06 0a2804cc1c6a983a57680c1953a31e219d378f44
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Oîß[c@s=ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd dd „ƒYZd „Zgd„ZdS(iÿÿÿÿNcCs tjdƒS(NtPayRMB(t IpyGameDataPYt
GetFuncCfg(((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt GetCoinRate8scCst|ƒdS(N(tSync_CoinToGoldCountInfo(t    curPlayer((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytOnLogin:s
cCs¹g}tjƒ}xŠt|jƒƒD]v}|j|ƒ}|jƒsLq%n|jƒ}|jtj    |ƒstq%nt
j |tj    |dƒ|j |ƒq%W|rµt ||ƒndS(Ni(RtIPY_Datatxranget GetCTGCountt GetCTGByIndextGetDailyBuyCountt GetRecordIDtNomalDictGetPropertytChConfigtDef_PDict_TodayCTGCountt PlayerControltNomalDictSetPropertytappendR(RtsyncRecordIDListt
ipyDataMgrtitipyDatatrecordID((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytOnDay>s   cCsHtjddƒ}|sdStjddƒ}t||tj|ƒdS(NtCornerPresentedMoneyii(RRtPlayerCoinToGoldExRt Def_GiveMoney_SuperAccountCreate(RtgiveCoinByCreatetisAddBourseMoney((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytGiveGoldByCreateQs c        Csad}g}|d}|tƒ}i|d6|d6|d6}t||||||||ƒdS(Niidt    orderCoinRt    eventName(Rt
DoCTGLogic(    RtorderRMBR Rt    prizeGoldt giveItemListRtaddGoldt    addDRDict((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRZs
 cCsltjd||ƒ}|sdStƒ}t|jƒdƒ|_||_||_||_t    |||ƒS(Nt    OrderInfoid(
RtGetIpyGameDatatCPY_PlayerCoinToGoldtintt GetPayRMBNumtuseCoint    orderInfotappIDRtPlayerCoinToGold(RR-R.RR Rt cPlayerCoin((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytDoGMCTGds                c    Cs|jƒ}|jƒ}|jƒ}|jƒ}|jƒ}|sTtj|ƒ}ni|d6|d6|d6|d6|d6|d6}|dkr§tj|d|ƒdSt    j
d    ||ƒ}    |    sÙtj|d
|ƒdS|    j ƒ}
|t |
d ƒkrtj|d |
|ƒdSddg} } } |    j ƒrst|||    j ƒ|||ƒ}|sadS|\} } } nH|    jƒr¤tj||    jƒg|ƒs»dSntj|d |ƒdSt||| | | |||ƒ|r|j|ƒt|||ƒn|jƒtS(NRR-torderIDRR R.isThe orderCoin is zero!R'sCan not found the orderInfo.ids4The orderCoin is not equal to the ipyData's RMB(%s)!sThe orderInfo is useless!(tGetCoint GetOrderInfot
GetOrderIDtGetIsAddBourseMoneytGetAppIDt    GameWorldtGetPlayerPlatformtDataRecordPackt DR_CTGErrorRR(R+R*tGetCTGIDt__GetCTGInfoByIDt GetGiftbagIDtPlayerFlashGiftbagtOnPlayerOrderGiftbagR!tSendDBFinishRechargetSync_CoinToGoldReporttSendDBQueryRechargetTrue(Rt
chargeInfoR RR-R2RR.R&Rt    payRMBNumR%R#R$t ctgResultInfo((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR/wsJ        !  
cCs€tjd|ƒ}|s/tj|d|ƒdS|jƒ}|ji|d6ƒ|jtj|ƒ}|r°|ji|d6|d6ƒ||kr°tj|d||ƒdSnt    j
|tj||dƒ|j ƒ}    |j ƒ}
|j ƒ} |jƒ} |jtj|ƒ} t    j
|tj|| dƒ| rE| rE| n| }|ji| dd6ƒt||gƒ|
||    fS(    NtCTGsCan not find CTG ipyData!RtdailyCanBuyCountt todayBuyCounts&Pay count limit today!todayBuyCount=%sit totalBuyCount(RR(R:R;R tupdateR RRRRtGetGainItemListt GetGainGoldtGetGainGoldPrizetGetFirstGoldPrizetDef_PDict_CTGGoodsBuyCountR(RRERR R&RRt dailyBuyCountRJR$R%t gainGoldPrizetfirstGoldPrizeRKR#((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR=­s.      c CsK|jƒ}tj|tjƒ}    |rLtj|tj|||d|ƒn|rwtj|tj|||d|ƒn|rt|ƒ}
t    j
|tj |
ƒ} | |
krÌtj d|j ƒg|ƒqxK|D]@\} } }tj|| | |tj gdtjt|gƒqÓWnt|dtƒƒ}tj||ƒ|jƒ}|j||dƒtj|tjdƒ|jƒ}|jƒ}tj|tjƒ}|ji||gd6||gd6|    |gd6|d    6|d
6|d 6ƒtj||ƒtj|ƒt j!|ƒt"j#||ƒt$j%d ||f|j ƒƒdS( NtisGiveBourseMoneytteventiditgoldtchangeCoinPointt bourseMoneyR%R#R$sBilling: eventName=%s, %s(&tGetGoldRtGetMoneyt ShareDefinetTYPE_Price_BourseMoneyt    GiveMoneyt IPY_GameWorldtTYPE_Price_Gold_Moneytlent
ItemCommontGetItemPackSpacetrptItemt SendMailByKeyt GetPlayerIDt ItemControlertGivePlayerItemRt ItemGive_CTGRDR*Rt    PlayerVipt    AddVIPExptGetChangeCoinPointTotaltSetChangeCoinPointTotalRtDef_PDict_FirstGoldTryRLR:tDR_CTGOKtPlayerFairyCeremonyt OnFCRechargetPlayerGoldGifttDayChargeRedPackAwardtPlayerActTotalRechargetAddTotalRechargeGoldR8tLog(RRR%R#R$RR R&t
goldBeforetbourseMoneyBeforet    needSpacet
emptySpacetitemIDt    itemCounttisBindt    addVIPExptchangeCoinPointBeforet    goldAftertchangeCoinPointAftertbourseMoneyAfter((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR!Ìs< %%     #&   R)cBsPeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z    RS(cCsCd|_d|_d|_d|_d|_d|_t|_dS(NiRV(R,t    prizeCointappendixR-R.R2tFalseR(tself((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt__init__s                            cCs|jS(N(R,(R‡((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR3scCs|jS(N(R„(R‡((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt GetPrizeCoinscCs|jS(N(R…(R‡((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt GetAppendix scCs|jS(N(R-(R‡((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR4$scCs|jS(N(R.(R‡((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR7'scCs|jS(N(R2(R‡((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR5)scCs|jS(N(R(R‡((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR6,s(
t__name__t
__module__RˆR3R‰RŠR4R7R5R6(((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR)üs                            cCsKtjƒ}|jƒt|ƒ|_||_||_tj||ƒdS(N(    tChPyNetSendPackttagMCCoinToGoldReporttClearRbtOrderLentOrderIDtCoint NetPackCommont SendFakePack(RR2tmoneyt openGleeGame((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRB0s 
        cCs |sTtjƒ}x?t|jƒƒD](}|j|ƒ}|j|jƒƒq%Wn|s^dStjƒ}|j    ƒg|_
xe|D]]}tj ƒ}||_ |j tj|ƒ|_|j tj|ƒ|_|j
j|ƒq„Wt|j
ƒ|_tj||ƒdS(N(RRRR    R
RR RttagMCCoinToGoldCountInfoRtCTGCountInfoListttagMCCoinToGoldCounttRecordIDR RRt TodayPayCountRQt TotalPayCountRbt RecordCountR“R”(RRRRRt countInfoPackRt    countInfo((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR:s&  
          ((RRhR8R`R:RRR“RkRR]R?RqRsRuRcRRRRRR1R/R=R!R)RBR(((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt<module>"s6                                        
        6        04