cehua_ZWJ
2019-01-30 6afaa4408f4e09e3e95dbd92f0d1cd5a1fb2942b
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
48
49
50
51
52
Mt4\c@smddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZd„Zd„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 GetCoinRate<scCst|ƒt|ƒdS(N(tDoResetCTGCounttSync_CoinToGoldCountInfo(t    curPlayer((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytOnLogin>s
 
c Csåtjddƒ}|sdSt|tƒs<tjdƒdSttjƒƒ}|jƒ}tjt    |ƒdƒ}||kr‚dS|j
t j ƒ}||kr¤dSt j|t j |ƒtjƒ}xt|jƒƒD]}|j|ƒ}|jƒ}    |j
t j|    ƒ}
|j
t j|    ƒ} |
r:| r:qÙnt j|t j|    dƒt j|t j|    dƒi|jƒd6|jƒd6|d6|
d    6| d
6|    d 6} tjd | |ƒtjd ||    |
| f|ƒqÙWdS(NtCTGis-³äÖµÖØÖÃʱ¼äÅäÖñØÐëÊÇÊýÖµ¸ñʽ£¬²»Äܰüº¬·ûºÅ!s%Y%m%ditPlayerIDtAccIDt ResetTimeYMDt totalBuyCountt todayBuyCounttrecordIDt ResetCTGCountsKÖØÖóäÖµ´ÎÊý: ResetTimeYMD=%s,recordID=%s,totalBuyCount=%s,todayBuyCount=%s(RRt
isinstancetintt    GameWorldtErrLogttimet GetPlayerIDtChangeTimeStrToNumtstrtNomalDictGetPropertytChConfigtDef_PDict_CTGCountResetTimet PlayerControltNomalDictSetPropertytIPY_Datatxranget GetCTGCountt GetCTGByIndext GetRecordIDtDef_PDict_CTGGoodsBuyCounttDef_PDict_TodayCTGCounttGetAccIDtDataRecordPackt SendEventPacktLog( RtctgResetTimeYMDtcurTimetplayerIDt    resetTimetplayerResetTimet
ipyDataMgrtitipyDataRR R tdrDict((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRCs>      $    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(RRRRR tGetDailyBuyCountR!RRR#RRtappendR(RtsyncRecordIDListR-R.R/R((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytOnDayis   cCsHtjddƒ}|sdStjddƒ}t||tj|ƒdS(NtCornerPresentedMoneyii(RRtPlayerCoinToGoldExRt Def_GiveMoney_SuperAccountCreate(RtgiveCoinByCreatetisAddBourseMoney((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytGiveGoldByCreate|s c        Csad}g}|d}|tƒ}i|d6|d6|d6}t||||||||ƒdS(Niidt    orderCoinR9t    eventName(Rt
DoCTGLogic(    RtorderRMBR<R9t    prizeGoldt giveItemListR;taddGoldt    addDRDict((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR6…s
 cCsltjd||ƒ}|sdStƒ}t|jƒdƒ|_||_||_||_t    |||ƒS(Nt    OrderInfoid(
RtGetIpyGameDatatCPY_PlayerCoinToGoldRt GetPayRMBNumtuseCoint    orderInfotappIDR9tPlayerCoinToGold(RRHRIR9R<R/t cPlayerCoin((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytDoGMCTGs                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(NR;RHtorderIDR9R<RIisThe orderCoin is zero!RCsCan not found the orderInfo.ids4The orderCoin is not equal to the ipyData's RMB(%s)!tsThe orderInfo is useless!(tGetCoint GetOrderInfot
GetOrderIDtGetIsAddBourseMoneytGetAppIDRtGetPlayerPlatformR%t DR_CTGErrorRRDRFRtGetCTGIDt__GetCTGInfoByIDt GetGiftbagIDtPlayerFlashGiftbagtOnPlayerOrderGiftbagR=tSendDBFinishRechargetSync_CoinToGoldReporttSendDBQueryRechargetTrue(Rt
chargeInfoR<R;RHRMR9RIRBR/t    payRMBNumRAR?R@t
notifyMarkt ctgResultInfo((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRJ¢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(    NRsCan not find CTG ipyData!RtdailyCanBuyCountR s&Pay count limit today!todayBuyCount=%siR (RRDR%RUR1tupdateRRR#RRtGetGainItemListt GetGainGoldtGetGainGoldPrizetGetFirstGoldPrizet GetNotifyMarkR"R(RR_RR<RBR9R/t dailyBuyCountR R@RAt gainGoldPrizetfirstGoldPrizeRaR R?((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRWØs0       RNc     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*|tj+|ƒt,j-d ||f|j ƒƒdS( NtisGiveBourseMoneyRNteventiidtgoldtchangeCoinPointt bourseMoneyRAR?R@sBilling: eventName=%s, %s(.tGetGoldRtGetMoneyt ShareDefinetTYPE_Price_BourseMoneyt    GiveMoneyt IPY_GameWorldtTYPE_Price_Gold_Moneytlent
ItemCommontGetItemPackSpacetrptItemt SendMailByKeyRt ItemControlertGivePlayerItemRt ItemGive_CTGR^t WorldNotifytGetNameRRt    PlayerVipt    AddVIPExptGetChangeCoinPointTotaltSetChangeCoinPointTotalRtDef_PDict_FirstGoldTryRdR%tDR_CTGOKtPlayerFairyCeremonyt OnFCRechargetPlayerGoldGifttDayChargeRedPackAwardtPlayerActTotalRechargetAddTotalRechargeGoldtOpenServerCampaigntAddOpenServerCampaignRecordDatatDef_Campaign_Type_RechargetPlayerWeekPartytAddWeekPartyActionCnttDef_WPAct_RechargeRR'(RR;RAR?R@R9R<RBRat
goldBeforetbourseMoneyBeforet    needSpacet
emptySpacetitemIDt    itemCounttisBindt
mainItemIDt    addVIPExptchangeCoinPointBeforet    goldAftertchangeCoinPointAftertbourseMoneyAfter((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR=øsF %%  (   #&   REcBsPeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z    RS(cCsCd|_d|_d|_d|_d|_d|_t|_dS(NiRN(RGt    prizeCointappendixRHRIRMtFalseR9(tself((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt__init__5s                            cCs|jS(N(RG(R¥((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRODscCs|jS(N(R¢(R¥((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt GetPrizeCoinLscCs|jS(N(R£(R¥((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt GetAppendixSscCs|jS(N(RH(R¥((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRPWscCs|jS(N(RI(R¥((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRSZscCs|jS(N(RM(R¥((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRQ\scCs|jS(N(R9(R¥((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRR_s(
t__name__t
__module__R¦ROR§R¨RPRSRQRR(((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRE/s                            cCsKtjƒ}|jƒt|ƒ|_||_||_tj||ƒdS(N(    tChPyNetSendPackttagMCCoinToGoldReporttClearRytOrderLentOrderIDtCoint NetPackCommont SendFakePack(RRMtmoneyt openGleeGame((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR\cs 
        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(RRRRR R2R!R«ttagMCCoinToGoldCountInfoR­tCTGCountInfoListttagMCCoinToGoldCounttRecordIDRRR#t TodayPayCountR"t TotalPayCountRyt RecordCountR±R²(RR3R-R.R/t countInfoPackRt    countInfo((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRms&  
          (( RR~RRwR%RR«R±RƒRRtRYR‰R‹RRR’RzRRRRR4R:R6RLRJRWR=RER\R(((sZ.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt<module>"s>                               &                
        6      74