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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
ËM!jc@sÁddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZedd)ƒZ\ZZZZ Z!Z"Z#eZ$dZ%dZ&dZ'dZ(dZ)d    „Z*d
„Z+d „Z,d „Z-d „Z.d„Z/d„Z0d„Z1d„Z2d„Z3d„Z4d„Z5d„Z6d„Z7d„Z8id„Z9d„Z:d„Z;e$d„Z<d„Z=d„Z>d„Z?d„Z@d „ZAdejCd!d"„ZDd#„ZEd$„ZFd%d*d&„ƒYZGd'„ZHdd(„ZIdS(+iÿÿÿÿNiiiiiiicCs tjdƒS(NtPayRMB(t IpyGameDataPYt
GetFuncCfg(((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt GetCoinRateZscCst|ƒst|ƒndS(N(tDoResetCTGCountByTimetSync_CoinToGoldCountInfo(t    curPlayer((siD:\SG_ServerCode\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((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRas     c
Csé|jƒ}tjƒ}xÀt|jƒƒD]¬}|j|ƒ}|jƒ}tj|t    j
|dƒ|j ƒsxq+n|j t    j |ƒ}|j t    j|ƒ}|j t    j|ƒ}    |j t    j|ƒ}
| rò| rò|     rò|
ròq+ntj|t    j |dƒtj|t    j|dƒtj|t    j|dƒtj|t    j|dƒi|jƒd6|jƒd6|d6|d6|d6|d6|    d6|
d    6} tjd
| |ƒtjd ||||f|ƒq+Wt|ƒdS( NitPlayerIDtAccIDt
ResetEventt totalBuyCountt todayBuyCounttrecordIDt weekBuyCountt monthBuyCountt ResetCTGCountsIÖØÖóäÖµ´ÎÊý: resetEvent=%s,recordID=%s,totalBuyCount=%s,todayBuyCount=%s(t GetPlayerIDRtIPY_Datatxranget GetCTGCountt GetCTGByIndext GetRecordIDRRRtDef_PDict_CTGSelectItemValuetGetCanResetBuyCountRtDef_PDict_CTGGoodsBuyCounttDef_PDict_TodayCTGCounttDef_PDict_WeekCTGCounttDef_PDict_MonthCTGCounttGetAccIDtDataRecordPackt SendEventPackR tLogR( Rt
resetEventtplayerIDt
ipyDataMgrtitipyDataR RRR!R"tdrDict((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRxs4    $    
c
 
Cs±|s
dS|jƒ}x‡|D]}tj|tj|dƒ|jtj|ƒ}|jtj|ƒ}|jtj|ƒ}|jtj    |ƒ}| r·| r·| r·| r·qntj|tj|dƒtj|tj|dƒtj|tj|dƒtj|tj    |dƒi|jƒd6|j
ƒd6|d6|d6|d6|d6|d6|d    6}    t j d
|    |ƒt jd ||||f|ƒqWt||ƒdS( NiRRRRRR R!R"R#sIÖØÖóäÖµ´ÎÊý: resetEvent=%s,recordID=%s,totalBuyCount=%s,todayBuyCount=%s(R$RRRR*RR,R-R.R/R0R1R2R R3R(
RR4tresetCTGIDListR5R RRR!R"R9((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytDoResetCTGCountByIDList–s.  $     cCs tj|tjdƒtj|tjdƒg}tjƒ}x°t|jƒƒD]œ}|j    |ƒ}|j
ƒ}|j tj |ƒ}|j tj |ƒ r¬| r¬qQntj|tj |dƒtj|tj |dƒ|j|ƒqQW|rt||ƒndS(Ni(RRRtDef_PDict_TodayCTGCoinTotaltDef_PDict_CTGRealTodayRR%R&R'R(R)RR*R-tappendR(RtsyncRecordIDListR6R7R8R tselectItemValue((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytOnDay°s   cCs§g}tjƒ}xxt|jƒƒD]d}|j|ƒ}|jƒ}|jtj|ƒsbq%nt    j
|tj|dƒ|j |ƒq%W|r£t ||ƒndS(Ni( RR%R&R'R(R)RRR.RRR>R(RR?R6R7R8R ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytOnWeekÊs  cCs§g}tjƒ}xxt|jƒƒD]d}|j|ƒ}|jƒ}|jtj|ƒsbq%nt    j
|tj|dƒ|j |ƒq%W|r£t ||ƒndS(Ni( RR%R&R'R(R)RRR/RRR>R(RR?R6R7R8R ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytOnMonthØs  cCsdS(N((tindextpackDatattick((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytOnQueryRechargeìscCs>tjƒj|ƒ}|j}t||r3|gngƒdS(N(R tGetPlayerManagertGetPlayerByIndextRecordIDR(RDt
clientDataRFRR ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytOnQueryCoinToGoldCountûs    c Cs tjƒj|ƒ}|jƒ}|j}|j}|tjkr`tjd||f|ƒdSt    j
d|ƒ}|s|dS|j ƒ}t ||ƒ\}    }
|
rÁtjd||
f|ƒdStj d|||    f|ƒtj|tj||ƒt||gƒdS(Ns6³äÖµ×ÔÑ¡ÎïÆ·Ñ¡ÔñÖµÒç³ö! recordID=%s,selectItemValue=%sRs.³äÖµ×ÔÑ¡ÎïÆ·Ñ¡Ôñ´íÎó! recordID=%s,errorInfo=%ss>³äÖµ×ÔÑ¡ÎïÆ·: recordID=%s,selectItemValue=%s,selectItemList=%s(R RHRIR$RJtSelectItemValueRtDef_UpperLimit_DWordR RtGetIpyGameDatatGetSelectItemInfotGetSelectItemListInfotDebugLogRRR*R( RDRKRFRR5R R@R8tselectItemInfotselectItemListt    errorInfo((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytOnSelectCTGItem    s&          c    CsÇtjƒj|ƒ}|j}|j}|j}tjd||ƒ}|sOdStƒ}t    j
|j ƒƒ|_ ||_ ||_d|_|tjkr°t||dtƒnt||dtƒdS(Nt    OrderInfottCoinBuyOrderInfo(R RHRItAppIDRWt UseMoneyTypeRROtCPY_PlayerCoinToGoldtCommFunct    RMBToCoint GetUsdMoneytuseCoint    orderInfotappIDtorderIDt ShareDefinetTYPE_Price_CashVouchertPlayerCoinToGoldtPayOrderType_CashVouchertPayOrderType_PayCoin(    RDRKRFRRbRat useMoneyTypeR8t cPlayerCoin((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytOnCoinBuyOrderInfo)s                             c Cs»|jddƒ}|jddƒ}|jdtƒ}| sV| sV|ttgkrmtj|||ƒdS|jddƒ}|jƒ}tj|ƒ}i|t    j
6|d6|d6}    tj |t j |||    ƒtj|ƒ}
tjd    ||||||
|f|ƒg} |tj|ƒg} tjd
|| | ƒ|tkr·tjƒjt jƒd } |jit    jd 6||
gd 6|jƒd6| d6|d6ƒtj||ƒndS(sÆ ³äÖµ¶Ò»»³É´ú±Ò
                Ò»°ã¿ÉÓÃÓÚһЩ³äÖµ¶©µ¥¶Ò»»ÓÎÏ·¹¦ÄÜʱ£¬ÓÎÏ·¹¦ÄÜÓÐÏÞÖÆÈçÏÞ¹º£¬
                ¸Ã³äÖµÊÓΪ³É¹¦£¬²¢×ª»¯Îª¶ÔÓ¦´ú±Ò£¬¿ÉÒÔÀí½âΪÀàËÆ³äÖµµãȯ£¬´ú±Ò¿ÉÓÃÓÚÏ´γäֵʱ֧¸¶£»
    RaRXt    orderCoinit payOrderTypeNt    eventNametExchangePayCoinso³äֵת»¯Îª´ú±Ò: orderInfo=%s,orderCoin=%s,payOrderType=%s,eventName=%s,befPayCoin=%s,aftPayCoin=%s,errorInfo=%stExchangeToPayCoinitcoinTypetPayCointVIPLvt    ServerDay(tgettPayOrderType_DefaultRhRgR1t DR_CTGErrorR$Rt
GetPayCoinRtDef_Give_Reason_SonKeyt    GiveMoneyRdtTYPE_Price_PayCoinR R3R]t
CoinToYuant
PlayerMailt SendMailByKeyt    DBDataMgrtGetEventTrigMgrtGetValuet Def_ServerDaytupdatetCoinType_ExchangePayCointGetVIPLvtDR_CTGOK(RRUt    addDRDictRaRlRmRnR5t
befPayCoinR9t
aftPayCoint addItemListt    paramListt    serverDay((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRo=s.         cCsHtjddƒ}|sdStjddƒ}t||tj|ƒdS(NtCornerPresentedMoneyii(RRtPlayerCoinToGoldExRt Def_GiveMoney_SuperAccountCreate(RtgiveCoinByCreatetisAddBourseMoney((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytGiveGoldByCreate_s c CsLtj|ƒ}d}d}tjƒ}xqt|jƒƒD]]}|j|ƒ}    ||    jƒkr:|    j    ƒ|kr:|    j
ƒ r:|    j ƒ r:|    }Pq:q:W|sÅtj d||f|j ƒƒdS|jƒ}
d} g} tj|ƒ} t||
ƒ}|}i| d6|d6|d6}t|tj| || | |||d|ƒ    tS(Nis>Can not found one RMB pay num orderInfo! appID=%s,payRMBNum=%siRlR‘RntcoinExp(R tGetPlayerPlatformtNoneRR%R&tGetOrderInfoCounttGetOrderInfoByIndextGetAppIDt GetPayRMBNumtGetCTGIDt GetGiftbagIDR R$t
GetCoinExpR]R^R
t
DoCTGLogicRt CoinType_GoldR(RtorderRMBRnR‘Rbt    payRMBNumt oneRMBIpyDataR6R7R8t oneRMBCoinExpt    prizeGoldt giveItemListRlR“taddGoldR‡((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRŽhs* >  +cCsdS(N((RRŸRnR‘t addDataDict((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt PlayerItemCTG„s
cCsktjd||ƒ}|sdStƒ}tj|jƒƒ|_||_||_||_    t
|||ƒS(NRW( RROR\R]R^R_R`RaRbR‘Rf(RRaRbR‘RnR8Rj((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytDoGMCTGs                cCsltƒ}||_||_||_t|_tjd|j|j|jf|jƒƒt    ||t
j ƒS(Ns4OnDBPushRecharge: useCoin=%s,orderInfo=%s,orderID=%s( R\R`RcRaRR‘R R3R$RfRtDef_GiveMoney_CoinToGold(RRcRat orderAmountRj((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pytOnDBPushRecharges                    ,cCs½|jƒ}|jƒ}|jƒ}|jƒ}|jƒ}|sTtj|ƒ}n|sƒtj|jƒƒ}tj    d|ƒnt
j j ||ƒ}i|d6|d6|d6|d6|d6|d6}    |dkrët j|d    |    ƒdStjd
||ƒ}
|
st j|d |    ƒdStjd |||f|jƒƒ|} tj|
jƒƒ}|
jƒ} tjd ||| f|jƒƒ||    d<| |    d<| tj| ƒkrÎt j|d| |    ƒdS|tkr,|
jƒrÇtjd|
jƒƒ} | rÇ| jƒtkr:tjd||f|jƒƒdS| jƒtkrptjd||f|jƒƒdS| jƒ}tjddƒ}||krÄtjd|||f|jƒƒdSqÇntj |t!j"||i|t
j#6|d6ƒs,tjd|||tj$|ƒf|jƒƒdSn|t%krŠ|
jƒr%tjd|
jƒƒ} | r%| jƒtkr˜tjd||f|jƒƒdS| jƒtkrÎtjd||f|jƒƒdS| jƒ}tjddƒ}||kr"tjd|||f|jƒƒdSq%ntj |t!j&||i|t
j#6|d6ƒsŠtjd|||tj'|ƒf|jƒƒdSn||    d<dddgdf\}}}}} |
jƒrþt)||
jƒ|    ƒ}|sædS|\}}}}} nt j|d|    ƒdS|
j*ƒ}| rH| jƒt+t,gkrHt
j-nt
j.}t/|||||||||    | ||ƒ s‚dS|r‹n| r| jƒnd}t0|||||ƒt1S(NsGetAppIDByAccID appID=%sRlRaRcR‘RnRbisThe orderCoin is zero!RWsCan not found the orderInfo.s6Ô½ÄϳäÖµÑéÖ¤ÃÀÔª: orderInfo=%s,orderCoin=%s,orderID=%ss5    ×ª»¯ºó: orderInfo=%s,orderCoin=%s,orderCoinUsd=%st orderCoinUsds<The orderCoinUsd is not equal to the ipyData's UsdMoney(%s)!Rs.´ú±Ò²»¿ÉÓÃÓÚÖ§¸¶´ú±Ò³äÖµ!appID=%s,orderInfo=%ss2´ú±Ò²»¿ÉÓÃÓÚÖ§¸¶ÏÖ½ðÀñȯ³äÖµ!appID=%s,orderInfo=%st RechargeLimitis9¸Ã³äÖµID²»¿ÉÓôú±ÒÖ§¸¶³äÖµ!appID=%s,orderInfo=%s,ctgID=%ss?´ú±Ò²»×ã! appID=%s,orderInfo=%s,orderCoin=%s,curPayCoinTotal=%ss2ÏÖ½ðÀñȯ²»¿ÉÓÃÓÚÖ§¸¶´ú±Ò³äÖµ!appID=%s,orderInfo=%ss6ÏÖ½ðÀñȯ²»¿ÉÓÃÓÚÖ§¸¶ÏÖ½ðÀñȯ³äÖµ!appID=%s,orderInfo=%ss=¸Ã³äÖµID²»¿ÉÓÃÏÖ½ðÀñȯ֧¸¶³äÖµ!appID=%s,orderInfo=%s,ctgID=%ssCÏÖ½ðÀñȯ²»×ã! appID=%s,orderInfo=%s,orderCoin=%s,curPayCoinTotal=%sRmsThe orderInfo is useless!(2tGetCoint GetOrderInfot
GetOrderIDtGetIsAddBourseMoneyR˜R R”tGetAppIDByAccIDR0RRRtDef_GetType_DictRuR1RwRROR3R$R]R^R™R_RhRšt
GetPayTypetPayType_PayCoinR tPayType_CashVoucherR)tGetFuncEvalCfgRtPayMoneyRdR{tDef_Cost_Reason_SonKeytGetPayCoinTotalRgRetGetCashVoucherR•t__GetCTGInfoByIDRœt PayType_GoldtPayType_GoldPlusRžt CoinType_BuyRtSync_CoinToGoldReportR(Rt
chargeInfoRnRmRlRaRcR‘RbR‡R8R¬tusdMoneyt
ctgIpyDatatctgIDtpayCoinLimitCTGIDListt    moneyTypeR¥R£R¤t ctgResultInfoR“RqR ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRf¬s¬      # #
 
      #
/    &      #
/    &
$  0-c$Cs¾tjd|ƒ}|s/tj|d|ƒdS|ji|d6ƒ|jƒ}|jtj|ƒ}|r­|ji|d6|d6ƒ||kr­t    |d||ƒdSn|j
ƒ}|jtj |ƒ}|r|ji|d6|d6ƒ||krt    |d    ||ƒdSn|j ƒ}|jtj |ƒ}    |r|ji|d
6|    d 6ƒ|    |krt    |d |    |ƒdSn|jƒ}
|jtj|ƒ} |
rë|ji|
d 6| d6ƒ| |
krët    |d| |ƒdSng} |jƒ} | rs|jtj|ƒ}|ji|d6ƒt| |ƒ\} }|r\t    |||ƒdS|ji| d6ƒnt||ƒ\}}}}|ji|d6|d6|d6|d6ƒg}|t|ƒ7}|| 7}|tj||ƒ7}|jƒ}|jƒ}|jƒ}|jƒ}| r0|r0|n|}|g}|tjddƒkrži}i}tjddƒ}x³|D]«}tjd|ƒ}|s q|n|jtj |ƒr¼q|n|j|ƒt|ƒ} | ||<x8| D]0}!|!d \}"}#|j|"dƒ|#||"<qæWt||ƒq|W|rhtj d||f|j!ƒƒ|ji|d6ƒnx3|j"ƒD]"\}"}#|j|"|#dgƒquWnt#||ƒ|||||fS(NRsCan not find CTG ipyData!R ttotalBuyCountLimitRs&Pay count limit total!totalBuyCount=%stdailyBuyCountLimitRs&Pay count limit today!todayBuyCount=%stweekBuyCountLimitR!s$Pay count limit week!weekBuyCount=%stmonthBuyCountLimitR"s&Pay count limit month!monthBuyCount=%sR@RTttotalBuyCountUpdttodayBuyCountUpdtweekBuyCountUpdtmonthBuyCountUpdt
DailyTehuiiiis&´ò°ü¹ºÂò: recordID=%s,packCTGIDDict=%st packCTGIDDict($RROR1RwRƒtGetTotalBuyCountRRR,RotGetDailyBuyCountR-tGetWeekBuyCountR.tGetMonthBuyCountR/RPR*RQt__addCTGIDBuyCnttGetCTGGiveItemListtPlayerActHeroAppeartGetCTGActItemListt GetMoneyTypet GetGainGoldtGetGainGoldPrizetGetFirstGoldPrizeRR·R>RuR R3R$titemsR($RR R‡R8RÈRRÉRRÊR!RËR"RTRSR@RURÌRÍRÎRÏR¤RÆR¥t gainGoldPrizetfirstGoldPrizeR£R?t packItemDictRÑtdailyTehuiCTGIDListRÄRÃt ctgItemListtitemInfotitemIDt    itemCount((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR¼sž         )
           
   c
Cs(|jtj|ƒ}t|dtjƒ}tj|tj||ƒ|jtj|ƒ}t|dtjƒ}tj|tj||ƒ|jtj|ƒ}t|dtjƒ}tj|tj||ƒ|jtj    |ƒ}t|dtjƒ}    tj|tj    ||    ƒ||||    fS(Ni(
RRR,tminRNRRR-R.R/(
RR RRÌRRÍR!RÎR"RÏ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRÖsc
CsMd}g}|}tjd||fƒxt|dƒD]\}}|dd}|dkr|d|||f}||fS|t|ƒkr«d|||f}||fS||}tjd|ƒ}    |    síd    ||||f}||fS|j|    jƒ|    jƒ|    j    ƒgƒ|d}tjd
|||||fƒq9W||fS( NRXs$selectItemValue=%s,selectItemInfo=%siidisJSelect item is not complete!selectItemValue=%s,selectNum=%s,selectIndex=%ssMSelect item index out of range!selectItemValue=%s,selectNum=%s,selectIndex=%st CTGSelectItemsPSelectID is not exist!selectItemValue=%s,selectNum=%s,selectIndex=%s,selectID=%ssP    selectNum=%s,selectIndex=%s,selectID=%s,selectItemList=%s,selectItemValue=%s(
R RRt    enumeratetlenRROR>t    GetItemIDt GetItemCounttGetIsAuctionItem(
RSR@RURTt selectValuet    selectNumt selectIDListt selectIndextselectIDt selectIpyData((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRQ‘s, 
 
 
 
(
    cCs |s
gS|jƒ}|}|S(N(tGetGainItemList(R8t gainItemListR¤((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRשs
 cCsÐ|jtjƒ}|jtjƒ}|jtjƒ}|sgttjƒƒ}tj|tj|ƒnt    ||tj
ƒ}tj|tj|ƒt    ||tj
ƒ}tj|tj|ƒt |gƒdS(N( RRR=tDef_PDict_CTGRealTotaltDef_PDict_CTGRealFirstTimeR
R RRRçRNR(RRlt ctgRealTodayt ctgRealTotaltctgRealFirstTime((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt __OnCTGReal´s ic $Cs|    r“|    jƒtkr“|    jƒ} tj}|jddƒ} |jddƒ}|jdtƒ}|jƒ}i}tj    |ƒ}|rÝ|
t
j krÝi| tj 6|d6| d6}tj ||
|||ƒ|||
<ntj    |ƒ}tj}|dkr-tj |||||d|ƒ|||<n|rftj|gtjd|di| d6| d    6ƒn|jd
ƒr{tnt}|r—t||ƒn|jtjƒ}|jtjƒ}|jtjƒ}tjƒjt
jƒd }|ji    |d 6||gd 6|d6|jƒd6|d6|d6|d6|d6|rKt j!|ƒndd6ƒt"j#||ƒt j$d| ||||||f|ƒtS|tj%tj&tj'gkrÌt"j(|d||ƒdS|jd
ƒrátnt}|jdtƒ}|t)krtj*}n|t+kr)tj,}n|jtjƒ}|jtjƒ}|jtjƒ}|rþ|s–t-t.j.ƒƒ}tj/|tj|ƒnt0||tj1ƒ}tj/|tj|ƒt0||tj1ƒ}tj/|tj|ƒt2|gƒn|jddƒ} |    r"|    jƒnd} |    r:|    j3ƒnd}|j4ƒ}tj5|t
j6ƒ}i}|r¢tj ||
||t7j8|ƒd|ƒ|||
<n|rötj}tj ||||t7j8|ƒd|ƒ|j|dƒ|||<n|rltj9||ddtjtt7j8|ƒgdtƒ|r‘|dd}tj:d||j;ƒ|dgƒq‘n%|r‘tj:d||j;ƒgƒn|s£|s£|rÖtj||tjd|di| d6| d    6ƒn| }|j<ƒ}|j=t0||tj1ƒdƒt0|jtj>ƒ|tj1ƒ} tj/|tj>| ƒ|j4ƒ}!|j<ƒ}"tj5|t
j6ƒ}#|tj%tj&tj*gkrÄt?j@|||ƒtAjB|||ƒtC|| |ƒn|    r)|    jƒ} tDjE|| ƒtFjG|| ƒtHjI|| ƒtJjK|| ƒtLjI|| ƒntjƒjt
jƒd }|ji||!gd6||"gd6| d6||#gd6|d6|d6|d6|d 6| d6|d 6|jƒd6|d6|d6|d6|rÝt j!|ƒndd6ƒt"j#||ƒt j$d!|||f|jƒƒtS("NRaRXRliRmtisGiveBourseMoneyt    moneyInfotdataExRÄRciRqRrRsRtRnRøRùRús`³äÖµ´ú±Ò: orderInfo=%s,orderCoin=%s,payOrderType=%s,eventName=%s,befPayCoin=%s,aftPayCoin=%s, %sscoinType error! coinType(%s)!teventt isNotifyAwardtgoldtchangeCoinPointttodayCTGCoinTotalt bourseMoneyR¥R£R¤R“t    addVIPExps%Billing: coinType=%s,eventName=%s, %s(MR´RµR)RtCoinType_PayCoinRuRvR$RRxRdR{RyRzt IPY_GameWorldtTYPE_Price_Gold_Moneyt ItemControlertNotifyGiveAwardInfot ItemGive_CTGRtFalseRûRR=RöR÷RR€RR‚RƒR…R tChangeTimeNumToStrR1R†R3RžR¿tCoinType_ItemSuperRwRhtCoinType_UsePayCoinRgtCoinType_UseCashVoucherR
R RRçRNRt GetNotifyMarktGetGoldtGetMoneytTYPE_Price_BourseMoneytcopytdeepcopytGivePlayerItemOrMailt WorldNotifytGetNametGetChangeCoinPointTotaltSetChangeCoinPointTotalR<tPlayerActTotalRechargetAddTotalRechargeCointPlayerActTotDayRechargetAddTotDayRechargeCointSyncCTGToCrosstPlayerGoldInvestt InvestByCTGtPlayerGoldGiftt OnGiftByCTGIDtPlayerZhanlingtOnActiviteByCTGIDtPlayerGoldRushtOnGoldRushByCTGIDt
PlayerLLMJ($RRqRlR¥R£R¤R‘RnR‡RÃRÆR“RÄRaRmR5RýRˆR9R‰tprizeMoneyTypet isRealMoneyRøRùRúRŒt
notifyMarkt
goldBeforetbourseMoneyBeforet
mainItemIDRtchangeCoinPointBeforeRt    goldAftertchangeCoinPointAftertbourseMoneyAfter((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRÃsÔ             $.          (     (4(  "    *)".#cCs—|jƒ}g}tj|ƒ}|dkrL||krL|j|ƒqLn|sftjd|ƒdSi|d6|d6}tjtj    |||ƒdS(sͬ²½ÓÎÏ·¹¦ÄÜÈÏΪµÄÕæÊµ³äÖµ¸ø¿ç·þ
    ³äÖµ¶Ò»»»áÔÚÍæ¼ÒËùÓеǼ¾ù´¦ÀíÍê±Ïºó²Å»áÖ´ÐУ¬ÒÔÈ·±£¿ç·þÕý³£Á¬½Óʱ£¬¿ç·þ·þÎñÆ÷Ò»¶¨ÓÉcrossPlayer´æÔÚ£¬¼õÉÙÎÞcrossPlayerʱ¿ÉÄÜÒý·¢µÄÂß¼­»òͬ²½·â°üÎÊÌâ
    ¡¾×¢¡¿Èç¹ûÊÇ¿ç·þ¶Ï¿ªµÄÇé¿öÎÞ·¨±ÜÃâ³äֵδͬ²½¿ç·þ£¬Èç³öÏÖʱ£¬Íæ¼Ò·´À¡ºóÔÙÈ˹¤½øÐÐÉóºË´¦Àí
    is!³äֵûÓÐÐèҪͬ²½µÄÄ¿±ê¿ç·þ·þÎñÆ÷!NRÄRl(
R$tPlayerActFamilyGCZtGetGCZCrossServerIDR>R RRtCrossMsgtSendToCrossServerRdtS2C_CTG(RRÄRlR5t serverIDListt crossServerIDtdataMsg((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR Ps   cCs=tjƒj|ƒ}|sdS|d}tj||ƒdS(NRÄ(t CrossPlayertGetCrossPlayerMgrtFindCrossPlayertPlayerActFamilyCTGAssistt OnPlayerCTG(R;t fromServerIDR5t crossPlayerRÄ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR8es 
R\cBsPeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z    RS(cCsCd|_d|_d|_d|_d|_d|_t|_dS(NiRX(R`t    prizeCointappendixRaRbRcR R‘(tself((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt__init__ys                            cCs|jS(N(R`(RE((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR®ˆscCs|jS(N(RC(RE((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt GetPrizeCoinscCs|jS(N(RD(RE((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt GetAppendix—scCs|jS(N(Ra(RE((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR¯›scCs|jS(N(Rb(RE((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR˜žscCs|jS(N(Rc(RE((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR° scCs|jS(N(R‘(RE((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR±£s(
t__name__t
__module__RFR®RGRHR¯R˜R°R±(((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR\ss                            cCsotjƒ}|jƒt|ƒ|_||_||_||_||_t|jƒ|_    t
j ||ƒdS(N( tChPyNetSendPackttagMCCoinToGoldReporttClearRêtOrderLentOrderIDtCoinRJRWt OrderInfoLent NetPackCommont SendFakePack(RRctmoneyR Rat openGleeGame((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRÀ§s 
                cCs—|dkr`g}tjƒ}x?t|jƒƒD](}|j|ƒ}|j|jƒƒq1Wntj    ƒ}|j
ƒ|j t j ƒ|_|j t jƒ|_|j t jƒ|_g|_x°|D]¨}tjƒ}||_|j t j|ƒ|_|j t j|ƒ|_|j t j|ƒ|_|j t j|ƒ|_|j t j|ƒ|_|jj|ƒqÅWt |jƒ|_!t"j#||ƒdS(N($R•RR%R&R'R(R>R)RKttagMCCoinToGoldCountInfoRMRRR=t    RealTodayRöt    RealTotalR÷t RealFirstTimetCTGCountInfoListttagMCCoinToGoldCountRJR-t TodayPayCountR,t TotalPayCountR.t WeekPayCountR/t MonthPayCountR*RMRêt RecordCountRRRS(RR?R6R7R8t countInfoPackR t    countInfo((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR´s0   
          i((JRR    R RR1RRKRRRRdR#RRRØR?R4R!R%R'R<R)R}RR]R6R RtrangetPayOrderTypeListtPayOrderType_RMBtPayOrderType_USDtPayOrderType_VNDtPayOrderType_SohatPayOrderType_5RhRgRvR½R¾tPayType_GrowupBuyRµR¶RRRRR;RARBRCRGRLRVRkRoR’RŽR§R¨R«RfR¼RÖRQR×RûR•RRR R8R\RÀR(((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt<module>"s~                           (                                                     "                       s    `                         4