cehua_lyf
2019-03-06 3c8ee0a8a524a6251d7d5aae2372e76fd8a99b9c
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
53
54
55
UTf\c@s‚ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd d „Zddd„ƒYZd„Z gd„Z!dS(iÿÿÿÿNcCs tjdƒS(NtPayRMB(t IpyGameDataPYt
GetFuncCfg(((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt GetCoinRate=scCst|ƒst|ƒndS(N(tDoResetCTGCountByTimetSync_CoinToGoldCountInfo(t    curPlayer((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytOnLogin?s  cCs¿tjddƒ}|sdSt|tƒs<tjdƒdSttjƒƒ}tjt|ƒdƒ}||krvdS|j    t
j ƒ}||kr˜dSt j |t
j |ƒt||ƒtS(NtCTGis-³äÖµÖØÖÃʱ¼äÅäÖñØÐëÊÇÊýÖµ¸ñʽ£¬²»Äܰüº¬·ûºÅ!s%Y%m%d(RRt
isinstancetintt    GameWorldtErrLogttimetChangeTimeStrToNumtstrtNomalDictGetPropertytChConfigtDef_PDict_CTGCountResetTimet PlayerControltNomalDictSetPropertytDoResetCTGCounttTrue(RtctgResetTimeYMDtcurTimet    resetTimetplayerResetTime((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRDs     c
CsA|jƒ}tjƒ}xt|jƒƒD]}|j|ƒ}|jƒ}|jtj    |ƒ}|jtj
|ƒ}| rŒ| rŒq+nt j |tj    |dƒt j |tj
|dƒi|jƒd6|j ƒd6|d6|d6|d6|d6}    tjd|    |ƒtjd    ||||f|ƒq+Wt|ƒdS(
NitPlayerIDtAccIDt
ResetEventt totalBuyCountt todayBuyCounttrecordIDt ResetCTGCountsIÖØÖóäÖµ´ÎÊý: resetEvent=%s,recordID=%s,totalBuyCount=%s,todayBuyCount=%s(t GetPlayerIDRtIPY_Datatxranget GetCTGCountt GetCTGByIndext GetRecordIDRRtDef_PDict_CTGGoodsBuyCounttDef_PDict_TodayCTGCountRRtGetAccIDtDataRecordPackt SendEventPackR tLogR(
Rt
resetEventtplayerIDt
ipyDataMgrtitipyDataR RRtdrDict((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR[s$   $    
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(RR#R$R%R&tGetDailyBuyCountR'RRR)RRtappendR(RtsyncRecordIDListR0R1R2R ((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytOnDayrs   cCsHtjddƒ}|sdStjddƒ}t||tj|ƒdS(NtCornerPresentedMoneyii(RRtPlayerCoinToGoldExRt Def_GiveMoney_SuperAccountCreate(RtgiveCoinByCreatetisAddBourseMoney((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytGiveGoldByCreate…s c        Csad}g}|d}|tƒ}i|d6|d6|d6}t||||||||ƒdS(Niidt    orderCoinR<t    eventName(Rt
DoCTGLogic(    RtorderRMBR?R<t    prizeGoldt giveItemListR>taddGoldt    addDRDict((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR9Žs
 cCsltjd||ƒ}|sdStƒ}t|jƒdƒ|_||_||_||_t    |||ƒS(Nt    OrderInfoid(
RtGetIpyGameDatatCPY_PlayerCoinToGoldR
t GetPayRMBNumtuseCoint    orderInfotappIDR<tPlayerCoinToGold(RRKRLR<R?R2t cPlayerCoin((sjE:\SnxxServerCode\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>RKtorderIDR<R?RLisThe orderCoin is zero!RFsCan not found the orderInfo.ids4The orderCoin is not equal to the ipyData's RMB(%s)!tsThe orderInfo is useless!(tGetCoint GetOrderInfot
GetOrderIDtGetIsAddBourseMoneytGetAppIDR tGetPlayerPlatformR+t DR_CTGErrorRRGRIR
tGetCTGIDt__GetCTGInfoByIDt GetGiftbagIDtPlayerFlashGiftbagtOnPlayerOrderGiftbagR@tSendDBFinishRechargetSync_CoinToGoldReporttSendDBQueryRechargeR(Rt
chargeInfoR?R>RKRPR<RLRER2t    payRMBNumRDRBRCt
notifyMarkt ctgResultInfo((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRM«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!R tdailyCanBuyCountRs&Pay count limit today!todayBuyCount=%siR(RRGR+RXR4tupdateRRR)RRtGetGainItemListt GetGainGoldtGetGainGoldPrizetGetFirstGoldPrizet GetNotifyMarkR(R(RRaR R?RER<R2t dailyBuyCountRRCRDt gainGoldPrizetfirstGoldPrizeRcRRB((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRZás0       RQc     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ƒt'j(|tj)|ƒt*j+|tj,|ƒt-j.d ||f|j ƒƒdS( NtisGiveBourseMoneyRQteventiidtgoldtchangeCoinPointt bourseMoneyRDRBRCsBilling: eventName=%s, %s(/tGetGoldRtGetMoneyt ShareDefinetTYPE_Price_BourseMoneyt    GiveMoneyt IPY_GameWorldtTYPE_Price_Gold_Moneytlent
ItemCommontGetItemPackSpacetrptItemt SendMailByKeyR"t ItemControlertGivePlayerItemRt ItemGive_CTGRt WorldNotifytGetNameR
Rt    PlayerVipt    AddVIPExptGetChangeCoinPointTotaltSetChangeCoinPointTotalRtDef_PDict_FirstGoldTryRfR+tDR_CTGOKtPlayerFairyCeremonyt OnFCRechargetPlayerNewFairyCeremonytPlayerGoldGifttDayChargeRedPackAwardtPlayerActTotalRechargetAddTotalRechargeGoldtOpenServerCampaigntAddOpenServerCampaignRecordDatatDef_Campaign_Type_RechargetPlayerWeekPartytAddWeekPartyActionCnttDef_WPAct_RechargeR R-(RR>RDRBRCR<R?RERct
goldBeforetbourseMoneyBeforet    needSpacet
emptySpacetitemIDt    itemCounttisBindt
mainItemIDt    addVIPExptchangeCoinPointBeforet    goldAftertchangeCoinPointAftertbourseMoneyAfter((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR@sH %%  (   #&    RHcBsPeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z    RS(cCsCd|_d|_d|_d|_d|_d|_t|_dS(NiRQ(RJt    prizeCointappendixRKRLRPtFalseR<(tself((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt__init__?s                            cCs|jS(N(RJ(R¨((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRRNscCs|jS(N(R¥(R¨((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt GetPrizeCoinVscCs|jS(N(R¦(R¨((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt GetAppendix]scCs|jS(N(RK(R¨((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRSascCs|jS(N(RL(R¨((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRVdscCs|jS(N(RP(R¨((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRTfscCs|jS(N(R<(R¨((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRUis(
t__name__t
__module__R©RRRªR«RSRVRTRU(((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRH9s                            cCsKtjƒ}|jƒt|ƒ|_||_||_tj||ƒdS(N(    tChPyNetSendPackttagMCCoinToGoldReporttClearR{tOrderLentOrderIDtCoint NetPackCommont SendFakePack(RRPtmoneyt openGleeGame((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR_ms 
        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(RR#R$R%R&R5R'R®ttagMCCoinToGoldCountInfoR°tCTGCountInfoListttagMCCoinToGoldCounttRecordIDRRR)t TodayPayCountR(t TotalPayCountR{t RecordCountR´Rµ(RR6R0R1R2t countInfoPackR t    countInfo((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRws&  
          (("RR€R RyR+RR®R´R…RRvR\R‹RRŽRR’R•R|R RRRRR7R=R9RORMRZR@RHR_R(((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt<module>"sB                                                    
        6      84