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
137
¤hjc@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„Z9e:d„Z;d„Z<e$d„Z=d„Z>d„Z?d„Z@d„ZAd „ZBdejDd!d"„ZEd#„ZFd$„ZGd%d*d&„ƒYZHd'„ZIdd(„ZJdS(+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ƒ}|jddƒ}|jdtƒ}| so| so| so|ttgkr†tj|||ƒ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|    | gd6|jƒd6|d6|d6ƒtj||ƒndS(sÆ ³äÖµ¶Ò»»³É´ú±Ò
                Ò»°ã¿ÉÓÃÓÚһЩ³äÖµ¶©µ¥¶Ò»»ÓÎÏ·¹¦ÄÜʱ£¬ÓÎÏ·¹¦ÄÜÓÐÏÞÖÆÈçÏÞ¹º£¬
                ¸Ã³äÖµÊÓΪ³É¹¦£¬²¢×ª»¯Îª¶ÔÓ¦´ú±Ò£¬¿ÉÒÔÀí½âΪÀàËÆ³äÖµµãȯ£¬´ú±Ò¿ÉÓÃÓÚÏ´γäֵʱ֧¸¶£»
    RaRXt    orderCoinitpayCoint payOrderTypeNt    eventNametExchangePayCoinsz³äֵת»¯Îª´ú±Ò: orderInfo=%s,orderCoin=%s,payOrderType=%s,eventName=%s,payCoin=%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    addDRDictRaRlRmRnRoR5t
befPayCoinR9t
aftPayCoint addItemListt    paramListt    serverDay((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRp=s0'     #  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’RotcoinExp(R tGetPlayerPlatformtNoneRR%R&tGetOrderInfoCounttGetOrderInfoByIndextGetAppIDt GetPayRMBNumtGetCTGIDt GetGiftbagIDR R$t
GetCoinExpR]R^R
t
DoCTGLogicRt CoinType_GoldR(RtorderRMBRoR’Rbt    payRMBNumt oneRMBIpyDataR6R7R8t oneRMBCoinExpt    prizeGoldt giveItemListRlR”taddGoldRˆ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyRis* >  +cCsdS(N((RR RoR’t addDataDict((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt PlayerItemCTG…s
cCs}tjd||ƒ}|sdStƒ}tj|jƒƒ|_||_||_||_    |rmd|_
nt |||ƒS(NRWt    gmvrorder( RROR\R]R^R_R`RaRbR’RcRf(RRaRbR’RotisVRR8Rj((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| |    ƒdStj|
jƒƒ} | |    d<|tkrN|
jƒrætjd|
jƒƒ}|ræ|jƒtkrYtjd||f|jƒƒdS|jƒtkrtjd||f|jƒƒdS|jƒ}tjddƒ}||krãtjd|||f|jƒƒdSqænt j!|t"j#| |i|t
j$6|d6ƒsNtjd|||t j%|ƒ| f|jƒƒdSn|t&kr¬|
jƒrGtjd|
jƒƒ}|rG|jƒtkrºtjd||f|jƒƒdS|jƒtkrðtjd||f|jƒƒdS|jƒ}tjddƒ}||krDtjd|||f|jƒƒdSqGnt j!|t"j'||i|t
j$6|d6ƒs¬tjd|||t j(|ƒf|jƒƒdSn||    d<dddgdf\}}}}}|
jƒr t*||
jƒ|    ƒ}|sdS|\}}}}}nt j|d|    ƒdS|
j+ƒ}|rj|jƒt,t-gkrjt
j.nt
j/}t0|||||||||    |||ƒ s¤dS|r­n|r¿|jƒnd}t1|||||ƒt2S(NsGetAppIDByAccID appID=%sRlRaRcR’RoRbisThe 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)!RmRs.´ú±Ò²»¿ÉÓÃÓÚÖ§¸¶´ú±Ò³äÖµ!appID=%s,orderInfo=%ss2´ú±Ò²»¿ÉÓÃÓÚÖ§¸¶ÏÖ½ðÀñȯ³äÖµ!appID=%s,orderInfo=%st RechargeLimitis9¸Ã³äÖµID²»¿ÉÓôú±ÒÖ§¸¶³äÖµ!appID=%s,orderInfo=%s,ctgID=%ssN´ú±Ò²»×ã! appID=%s,orderInfo=%s,orderCoin=%s,curPayCoinTotal=%s,needPayCoin=%ss2ÏÖ½ðÀñȯ²»¿ÉÓÃÓÚÖ§¸¶´ú±Ò³äÖµ!appID=%s,orderInfo=%ss6ÏÖ½ðÀñȯ²»¿ÉÓÃÓÚÖ§¸¶ÏÖ½ðÀñȯ³äÖµ!appID=%s,orderInfo=%ss=¸Ã³äÖµID²»¿ÉÓÃÏÖ½ðÀñȯ֧¸¶³äÖµ!appID=%s,orderInfo=%s,ctgID=%ssCÏÖ½ðÀñȯ²»×ã! appID=%s,orderInfo=%s,orderCoin=%s,curPayCoinTotal=%sRnsThe orderInfo is useless!(3tGetCoint GetOrderInfot
GetOrderIDtGetIsAddBourseMoneyR™R R•tGetAppIDByAccIDR0RRRtDef_GetType_DictRvR1RxRROR3R$R]R^RšR_RyRhR›t
GetPayTypetPayType_PayCoinR tPayType_CashVoucherR)tGetFuncEvalCfgRtPayMoneyRdR|tDef_Cost_Reason_SonKeytGetPayCoinTotalRgRetGetCashVoucherR–t__GetCTGInfoByIDRt PayType_GoldtPayType_GoldPlusRŸt CoinType_BuyRžtSync_CoinToGoldReportR(Rt
chargeInfoRoRnRlRaRcR’RbRˆR8R¯tusdMoneyt needPayCoint
ctgIpyDatatctgIDtpayCoinLimitCTGIDListt    moneyTypeR¦R¤R¥t ctgResultInfoR”RrR ((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($RROR1RxR„tGetTotalBuyCountRRR,RptGetDailyBuyCountR-tGetWeekBuyCountR.tGetMonthBuyCountR/RPR*RQt__addCTGIDBuyCnttGetCTGGiveItemListtPlayerActHeroAppeartGetCTGActItemListt GetMoneyTypet GetGainGoldtGetGainGoldPrizetGetFirstGoldPrizeRRºR>RvR 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ƒd|krõtj |dd|dƒndS(NR¯i( RRR=tDef_PDict_CTGRealTotaltDef_PDict_CTGRealFirstTimeR
R RRRëRNRtDoInternalTestToPub(RRlRˆt 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|rNt 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|rEt|||ƒn|jtjƒ}|jtjƒ}|jtjƒ}|jddƒ} |    rŸ|    jƒnd} |    r·|    j-ƒnd}|j.ƒ}tj/|t
j0ƒ}i}|rtj ||
||t1j2|ƒd|ƒ|||
<n|rstj}tj ||||t1j2|ƒd|ƒ|j|dƒ|||<n|rétj3||ddtjtt1j2|ƒgdtƒ|r|dd}tj4d||j5ƒ|dgƒqn%|rtj4d||j5ƒgƒn|s |s |rStj||tjd|di| d6| d    6ƒn| }|j6ƒ}|j7t8||tj9ƒdƒt8|jtj:ƒ|tj9ƒ} tj;|tj:| ƒ|j.ƒ}!|j6ƒ}"tj/|t
j0ƒ}#|tj%tj&tj*gkrAt<j=|||ƒt>j?|||ƒt@|| |ƒn|    r¦|    jƒ} tAjB|| ƒtCjD|| ƒtEjF|| ƒtGjH|| ƒtIjF|| ƒntjƒjt
jƒd }|ji||!gd6||"gd6| d6||#gd6|d6|d6|d6|d 6| d6|d 6|jƒd6|d6|d6|d6|rZt j!|ƒndd6ƒt"j#||ƒt j$d!|||f|jƒƒtS("NRaRXRliRntisGiveBourseMoneyt    moneyInfotdataExRÈRciRrRsRtRuRoRý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(JR·R¸R)RtCoinType_PayCoinRvRwR$RRyRdR|RzR{t IPY_GameWorldtTYPE_Price_Gold_Moneyt ItemControlertNotifyGiveAwardInfot ItemGive_CTGRtFalseRRR=RúRûR€RR‚RƒR„R†R tChangeTimeNumToStrR1R‡R3RŸRÂtCoinType_ItemSuperRxRhtCoinType_UsePayCoinRgtCoinType_UseCashVouchert GetNotifyMarktGetGoldtGetMoneytTYPE_Price_BourseMoneytcopytdeepcopytGivePlayerItemOrMailt WorldNotifytGetNametGetChangeCoinPointTotaltSetChangeCoinPointTotalRëRNR<RtPlayerActTotalRechargetAddTotalRechargeCointPlayerActTotDayRechargetAddTotDayRechargeCointSyncCTGToCrosstPlayerGoldInvestt InvestByCTGtPlayerGoldGiftt OnGiftByCTGIDtPlayerZhanlingtOnActiviteByCTGIDtPlayerGoldRushtOnGoldRushByCTGIDt
PlayerLLMJ($RRrRlR¦R¤R¥R’RoRˆRÇRÊR”RÈRaRnR5RR‰R9RŠtprizeMoneyTypet isRealMoneyRýRþRÿRt
notifyMarkt
goldBeforetbourseMoneyBeforet
mainItemIDR
tchangeCoinPointBeforeRt    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%Ss   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.pyR=hs 
R\cBsPeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z    RS(cCsCd|_d|_d|_d|_d|_d|_t|_dS(NiRX(R`t    prizeCointappendixRaRbRcRR’(tself((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt__init__|s                            cCs|jS(N(R`(RJ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR±‹scCs|jS(N(RH(RJ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt GetPrizeCoin“scCs|jS(N(RI(RJ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt GetAppendixšscCs|jS(N(Ra(RJ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR²žscCs|jS(N(Rb(RJ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR™¡scCs|jS(N(Rc(RJ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR³£scCs|jS(N(R’(RJ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR´¦s(
t__name__t
__module__RKR±RLRMR²R™R³R´(((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR\vs                            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)RPttagMCCoinToGoldCountInfoRRRRR=t    RealTodayRút    RealTotalRût RealFirstTimetCTGCountInfoListttagMCCoinToGoldCountRJR-t TodayPayCountR,t TotalPayCountR.t WeekPayCountR/t MonthPayCountR*RMRît RecordCountRWRX(RR?R6R7R8t countInfoPackR t    countInfo((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyR·s0   
          i((KRRR R R1RRPRWRRdR(R!R#RÜRDR9R&R*R,RAR.R~R€R]R;R RtrangetPayOrderTypeListtPayOrderType_RMBtPayOrderType_USDtPayOrderType_VNDtPayOrderType_SohatPayOrderType_5RhRgRwRÀRÁtPayType_GrowupBuyR¸R¹RRRRR;RARBRCRGRLRVRkRpR“RR¨RR«R®RfR¿RÚRQRÛRR–R RžR%R=R\RÃR(((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerCoin.pyt<module>"s~                           (                                                     #                  u    `                 ˆ        4