hch
2018-10-09 6768d1fd777785c3e7fe4422f6ad749664bae061
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
#¹¼[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(((s[.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt GetCoinRate7scCst|ƒdS(N(tSync_CoinToGoldCountInfo(t    curPlayer((s[.\\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((s[.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytOnDay=s   cCsHtjddƒ}|sdStjddƒ}t||tj|ƒdS(NtCornerPresentedMoneyii(RRtPlayerCoinToGoldExRt Def_GiveMoney_SuperAccountCreate(RtgiveCoinByCreatetisAddBourseMoney((s[.\\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((s[.\\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((s[.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytDoGMCTGcs                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((s[.\\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(RRERR R&RRt dailyBuyCountRJR$R%t gainGoldPrizetfirstGoldPrizeRKR#((s[.\\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_CTGRDR*Rt    PlayerVipt    AddVIPExptGetChangeCoinPointTotaltSetChangeCoinPointTotalRtDef_PDict_FirstGoldTryRLR:tDR_CTGOKtPlayerFairyCeremonyt OnFCRechargetPlayerGoldGifttDayChargeRedPackAwardR8tLog(RRR%R#R$RR R&t
goldBeforetbourseMoneyBeforet    needSpacet
emptySpacetitemIDt    itemCounttisBindt    addVIPExptchangeCoinPointBeforet    goldAftertchangeCoinPointAftertbourseMoneyAfter((s[.\\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((s[.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt__init__s                            cCs|jS(N(R,(R…((s[.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR3scCs|jS(N(R‚(R…((s[.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt GetPrizeCoinscCs|jS(N(Rƒ(R…((s[.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt GetAppendixscCs|jS(N(R-(R…((s[.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR4"scCs|jS(N(R.(R…((s[.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR7%scCs|jS(N(R2(R…((s[.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR5'scCs|jS(N(R(R…((s[.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR6*s(
t__name__t
__module__R†R3R‡RˆR4R7R5R6(((s[.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR)ús                            cCsKtjƒ}|jƒt|ƒ|_||_||_tj||ƒdS(N(    tChPyNetSendPackttagMCCoinToGoldReporttClearRbtOrderLentOrderIDtCoint NetPackCommont SendFakePack(RR2tmoneyt openGleeGame((s[.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRB.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 TodayPayCountRQt TotalPayCountRbt RecordCountR‘R’(RRRRRt countInfoPackRt    countInfo((s[.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR8s&  
          ((RRhR8R`R:RR‹R‘RkRR]R?RqRsRcRRRRRR1R/R=R!R)RBR(((s[.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt<module>"s4                                       
        6        /4