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@sLddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd    „Zd
d „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 GetCoinRate9scCsxtj|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.pytOnDayTs   cCsHtjddƒ}|sdStjddƒ}t||tj|ƒdS(NtCornerPresentedMoneyii(RRtPlayerCoinToGoldExR t Def_GiveMoney_SuperAccountCreate(R!tgiveCoinByCreatetisAddBourseMoney((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytGiveGoldByCreategs 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,ps
 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.pytDoGMCTGzs                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((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ƒ} |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((sjE:\SnxxServerCode\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%||dƒt&j'|tj(|ƒ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 OnFCRechargetPlayerGoldGifttDayChargeRedPackAwardtPlayerActTotalRechargetAddTotalRechargeGoldtOpenServerCampaigntAddOpenServerCampaignRecordDatatDef_Campaign_Type_RechargeR
R(R!R1R7R5R6R/R2R8RXt
goldBeforetbourseMoneyBeforet    needSpacet
emptySpacetitemIDt    itemCounttisBindt
mainItemIDt    addVIPExptchangeCoinPointBeforet    goldAftertchangeCoinPointAftertbourseMoneyAfter((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR3ãsD %%  (   #&   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((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.pyRF.scCs|jS(N(R—(Rš((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt GetPrizeCoin6scCs|jS(N(R˜(Rš((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt GetAppendix=scCs|jS(N(R?(Rš((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRGAscCs|jS(N(R@(Rš((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRJDscCs|jS(N(RD(Rš((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRHFscCs|jS(N(R/(Rš((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRIIs(
t__name__t
__module__R›RFRœRRGRJRHRI(((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR;s                            cCsKtjƒ}|jƒt|ƒ|_||_||_tj||ƒdS(N(    tChPyNetSendPackttagMCCoinToGoldReporttClearRqtOrderLentOrderIDtCoint NetPackCommont SendFakePack(R!RDtmoneyt openGleeGame((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRSMs 
        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((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR Ws&  
          ((RRvR
RoRR R R¦R{RRlRPRRƒR…R‡RrRR&R*R0R,RCRARNR3R;RSR (((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt<module>"s8                                         
        6      64