cehua_LC
2018-11-10 f366ce718c50995c6903ae27cdab1212acf407ff
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
Utæ[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(((sjE:\SnxxServerCode\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((sjE:\SnxxServerCode\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((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytOnDaySs   cCsHtjddƒ}|sdStjddƒ}t||tj|ƒdS(NtCornerPresentedMoneyii(RRtPlayerCoinToGoldExR t Def_GiveMoney_SuperAccountCreate(R!tgiveCoinByCreatetisAddBourseMoney((sjE:\SnxxServerCode\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((sjE:\SnxxServerCode\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((sjE:\SnxxServerCode\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 |
|ƒdSddg} } } |    j ƒrst|||    j ƒ|||ƒ}|sadS|\} } } 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)!sThe orderInfo is useless!(tGetCoint GetOrderInfot
GetOrderIDtGetIsAddBourseMoneytGetAppIDR
tGetPlayerPlatformRt DR_CTGErrorRR:R=R<tGetCTGIDt__GetCTGInfoByIDt GetGiftbagIDtPlayerFlashGiftbagtOnPlayerOrderGiftbagR3tSendDBFinishRechargetSync_CoinToGoldReporttSendDBQueryRechargetTrue(R!t
chargeInfoR2R1R?RDR/R@R8R$t    payRMBNumR7R5R6t ctgResultInfo((sjE:\SnxxServerCode\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ƒ} |jtj|ƒ} t    j
|tj|| dƒ| rE| rE| n| }|ji| dd6ƒt||gƒ|
||    fS(    NtCTGsCan not find CTG ipyData!RtdailyCanBuyCountRs&Pay count limit today!todayBuyCount=%siR(RR:RRKR'tupdateRR RRRtGetGainItemListt GetGainGoldtGetGainGoldPrizetGetFirstGoldPrizeRR (R!RURR2R8R/R$t dailyBuyCountRR6R7t gainGoldPrizetfirstGoldPrizeRR5((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRMÂ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 bourseMoneyR7R5R6sBilling: eventName=%s, %s(&tGetGoldRtGetMoneyt ShareDefinetTYPE_Price_BourseMoneyt    GiveMoneyt IPY_GameWorldtTYPE_Price_Gold_Moneytlent
ItemCommontGetItemPackSpacetrptItemt SendMailByKeyRt ItemControlertGivePlayerItemR t ItemGive_CTGRTR<Rt    PlayerVipt    AddVIPExptGetChangeCoinPointTotaltSetChangeCoinPointTotalRtDef_PDict_FirstGoldTryRZRtDR_CTGOKtPlayerFairyCeremonyt OnFCRechargetPlayerGoldGifttDayChargeRedPackAwardtPlayerActTotalRechargetAddTotalRechargeGoldR
R(R!R1R7R5R6R/R2R8t
goldBeforetbourseMoneyBeforet    needSpacet
emptySpacetitemIDt    itemCounttisBindt    addVIPExptchangeCoinPointBeforet    goldAftertchangeCoinPointAftertbourseMoneyAfter((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR3ás< %%     #&   R;cBsPeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z    RS(cCsCd|_d|_d|_d|_d|_d|_t|_dS(NiRc(R>t    prizeCointappendixR?R@RDtFalseR/(tself((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt__init__s                            cCs|jS(N(R>(R’((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRE&scCs|jS(N(R(R’((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt GetPrizeCoin.scCs|jS(N(R(R’((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt GetAppendix5scCs|jS(N(R?(R’((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRF9scCs|jS(N(R@(R’((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRI<scCs|jS(N(RD(R’((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRG>scCs|jS(N(R/(R’((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRHAs(
t__name__t
__module__R“RER”R•RFRIRGRH(((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR;s                            cCsKtjƒ}|jƒt|ƒ|_||_||_tj||ƒdS(N(    tChPyNetSendPackttagMCCoinToGoldReporttClearRotOrderLentOrderIDtCoint NetPackCommont SendFakePack(R!RDtmoneyt openGleeGame((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRREs 
        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 TotalPayCountRot RecordCountRžRŸ(R!R)R"R#R$t countInfoPackRt    countInfo((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR Os&  
          ((RRtR
RmRR R˜RžRwRRjROR}RRRpRR&R*R0R,RCRARMR3R;RRR (((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt<module>"s6                                        
        6        04