cehua_TRX
2018-11-24 c7d5827fb1861bff64af2128a7033f18c58a3020
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
42
43
44
45
46
47
ë    ù[c@s@ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd    „Zd
d „Zd dd „ƒYZd„Zgd„ZdS(iÿÿÿÿNcCs tjdƒS(NtPayRMB(t IpyGameDataPYt
GetFuncCfg(((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt GetCoinRate8scCsxtj|tjtjƒs]tj|tjtjdƒtjƒ}x$t|j    ƒƒD]}|j
|ƒ}|j ƒ}|j tj |ƒ}|j tj|ƒ}| r·| r·qVntj|tj |dƒtj|tj|dƒi|jƒd6|jƒd6|d6|d6|d6}tjd||ƒtjd    |||f|jƒƒqVWn tjd
ƒt|ƒdS( NiitPlayerIDtAccIDt totalBuyCountt todayBuyCounttrecordIDt ResetCTGCounts;ÖØÖóäÖµ´ÎÊý: recordID=%s,totalBuyCount=%s,todayBuyCount=%ssÒѾ­ÖØÖùý³äÖµ´ÎÊý£¡(t    GameWorldtGetDictValueByBittChConfigtDef_Player_Dict_VersionFixtDef_VerFix_CTGDoublePrizetSetDictValueByBitRtIPY_Datatxranget GetCTGCountt GetCTGByIndext GetRecordIDtNomalDictGetPropertytDef_PDict_CTGGoodsBuyCounttDef_PDict_TodayCTGCountt PlayerControltNomalDictSetPropertyt GetPlayerIDtGetAccIDtDataRecordPackt SendEventPacktLogtDebugLogtSync_CoinToGoldCountInfo(t    curPlayert
ipyDataMgrtitipyDataRRRtdrDict((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytOnLogin:s&  5    ! 
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(RRRRRtGetDailyBuyCountRRR RRRtappendR (R!tsyncRecordIDListR"R#R$R((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytOnDaySs   cCsHtjddƒ}|sdStjddƒ}t||tj|ƒdS(NtCornerPresentedMoneyii(RRtPlayerCoinToGoldExR t Def_GiveMoney_SuperAccountCreate(R!tgiveCoinByCreatetisAddBourseMoney((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytGiveGoldByCreatefs c        Csad}g}|d}|tƒ}i|d6|d6|d6}t||||||||ƒdS(Niidt    orderCoinR/t    eventName(Rt
DoCTGLogic(    R!torderRMBR2R/t    prizeGoldt giveItemListR1taddGoldt    addDRDict((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR,os
 cCsltjd||ƒ}|sdStƒ}t|jƒdƒ|_||_||_||_t    |||ƒS(Nt    OrderInfoid(
RtGetIpyGameDatatCPY_PlayerCoinToGoldtintt GetPayRMBNumtuseCoint    orderInfotappIDR/tPlayerCoinToGold(R!R?R@R/R2R$t cPlayerCoin((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytDoGMCTGys                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 |
|ƒdSddgd f\} } } }|    j ƒr€t|||    j ƒ|||ƒ}|skdS|\} } } }nH|    jƒr±tj||    jƒg|ƒsÈdSntj|d|ƒdSt||| | | ||||ƒ    |r|j|ƒt|||ƒn|jƒtS(NR1R?torderIDR/R2R@isThe orderCoin is zero!R9sCan not found the orderInfo.ids4The orderCoin is not equal to the ipyData's RMB(%s)!tsThe orderInfo is useless!(tGetCoint GetOrderInfot
GetOrderIDtGetIsAddBourseMoneytGetAppIDR
tGetPlayerPlatformRt DR_CTGErrorRR:R=R<tGetCTGIDt__GetCTGInfoByIDt GetGiftbagIDtPlayerFlashGiftbagtOnPlayerOrderGiftbagR3tSendDBFinishRechargetSync_CoinToGoldReporttSendDBQueryRechargetTrue(R!t
chargeInfoR2R1R?RDR/R@R8R$t    payRMBNumR7R5R6t
notifyMarkt ctgResultInfo((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRAŒsJ        ! " 
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ƒ} |jƒ} |jtj|ƒ}t    j
|tj||dƒ| rQ| rQ| n| }|ji|dd6ƒt||gƒ|
||    | fS(    NtCTGsCan not find CTG ipyData!RtdailyCanBuyCountRs&Pay count limit today!todayBuyCount=%siR(RR:RRLR'tupdateRR RRRtGetGainItemListt GetGainGoldtGetGainGoldPrizetGetFirstGoldPrizet GetNotifyMarkRR (R!RVRR2R8R/R$t dailyBuyCountRR6R7t gainGoldPrizetfirstGoldPrizeRXRR5((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRNÂs0       REc     Cs„|jƒ}    tj|tjƒ}
|rLtj|tj|||d|ƒn|rwtj|tj|||d|ƒn|rSt|ƒ} t    j
|tj | ƒ} | | krÌtj d|j ƒg|ƒnKxH|D]@\} }}tj|| ||tj gdtjt|gƒqÓW|rS|dd}tjd||jƒ|dgƒqSnt|dtƒƒ}tj||ƒ|jƒ}|j||dƒtj|tjdƒ|jƒ}|jƒ}tj|tjƒ}|ji|    |gd6||gd6|
|gd6|d    6|d
6|d 6ƒtj||ƒt j!|ƒt"j#|ƒt$j%||ƒt&j'd ||f|j ƒƒdS( NtisGiveBourseMoneyREteventiidtgoldtchangeCoinPointt bourseMoneyR7R5R6sBilling: eventName=%s, %s((tGetGoldRtGetMoneyt ShareDefinetTYPE_Price_BourseMoneyt    GiveMoneyt IPY_GameWorldtTYPE_Price_Gold_Moneytlent
ItemCommontGetItemPackSpacetrptItemt SendMailByKeyRt ItemControlertGivePlayerItemR t ItemGive_CTGRUt WorldNotifytGetNameR<Rt    PlayerVipt    AddVIPExptGetChangeCoinPointTotaltSetChangeCoinPointTotalRtDef_PDict_FirstGoldTryR\RtDR_CTGOKtPlayerFairyCeremonyt OnFCRechargetPlayerGoldGifttDayChargeRedPackAwardtPlayerActTotalRechargetAddTotalRechargeGoldR
R(R!R1R7R5R6R/R2R8RXt
goldBeforetbourseMoneyBeforet    needSpacet
emptySpacetitemIDt    itemCounttisBindt
mainItemIDt    addVIPExptchangeCoinPointBeforet    goldAftertchangeCoinPointAftertbourseMoneyAfter((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR3âsB %%  (   #&   R;cBsPeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z    RS(cCsCd|_d|_d|_d|_d|_d|_t|_dS(NiRE(R>t    prizeCointappendixR?R@RDtFalseR/(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.pyRF*scCs|jS(N(R”(R—((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt GetPrizeCoin2scCs|jS(N(R•(R—((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt GetAppendix9scCs|jS(N(R?(R—((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRG=scCs|jS(N(R@(R—((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRJ@scCs|jS(N(RD(R—((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRHBscCs|jS(N(R/(R—((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRIEs(
t__name__t
__module__R˜RFR™RšRGRJRHRI(((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR;s                            cCsKtjƒ}|jƒt|ƒ|_||_||_tj||ƒdS(N(    tChPyNetSendPackttagMCCoinToGoldReporttClearRqtOrderLentOrderIDtCoint NetPackCommont SendFakePack(R!RDtmoneyt openGleeGame((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRSIs 
        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(RRRRRR(RRttagMCCoinToGoldCountInfoRŸtCTGCountInfoListttagMCCoinToGoldCounttRecordIDRR Rt TodayPayCountRt TotalPayCountRqt RecordCountR£R¤(R!R)R"R#R$t countInfoPackRt    countInfo((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR Ss&  
          ((RRvR
RoRR RR£R{RRlRPRRƒR…RrRR&R*R0R,RCRARNR3R;RSR (((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt<module>"s6                                        
        6      34