cehua_LC
2018-09-21 c65ec6dabe61d84bac2c2e7f5e848c76f35f1d6e
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
x{[c@s1ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZd„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 GetCoinRate7scCst|ƒdS(N(tSync_CoinToGoldCountInfo(t    curPlayer((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytOnLogin9s
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.pytGiveGoldByCreatePs 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.pyRYs
 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.pytDoGMCTGcs                c    Cs|jƒ}|jƒ}|jƒ}|jƒ}|jƒ}|sZtj|jƒƒ}ni|d6|d6|d6|d6|d6|d6}|dkr­tj    |d|ƒdSt
j d    ||ƒ}    |    sßtj    |d
|ƒdS|    j ƒ}
|t |
d ƒkrtj    |d |
|ƒdSddg} } } |    jƒryt|||    jƒ|||ƒ}|sgdS|\} } } 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    GameWorldtGetPlayerPlatformtGetAccIDtDataRecordPackt 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/vsJ        !  
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(RRFRR R&RRt dailyBuyCountRKR$R%t gainGoldPrizetfirstGoldPrizeRLR#((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR>¬s.      c Cs;|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#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_CTGRER*Rt    PlayerVipt    AddVIPExptGetChangeCoinPointTotaltSetChangeCoinPointTotalRtDef_PDict_FirstGoldTryRMR;tDR_CTGOKtPlayerFairyCeremonyt OnFCRechargetPlayerGoldGifttDayChargeRedPackAwardR8tLog(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(NiRW(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 GetAppendixscCs|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(    tChPyNetSendPackttagMCCoinToGoldReporttClearRctOrderLentOrderIDtCoint NetPackCommont SendFakePack(RR2tmoneyt openGleeGame((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRC.s 
        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 TodayPayCountRRt TotalPayCountRct RecordCountR’R“(RRRRRt countInfoPackRt    countInfo((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR8s&  
          ((RRiR8RaR;RRŒR’RlRR^R@RrRtRdRRRRRR1R/R>R!R)RCR(((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt<module>"s4                                       
        6        /4