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
53
54
55
56
57
58
59
60
#¹¼[c@sddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
dZ dZ e dƒ\ZZZZZZd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „Zed „Zd„Zd„ZdS(iÿÿÿÿNtvtnic    Csþtjƒj|ƒ}||jtjƒtjtjkr?dS|j}tjd||j    ƒƒ|j
tj|ƒ|j ƒt j kr›tjdƒdStj|t jƒsÍtj|dt jgƒdSt||ƒràdSt||ƒródS|jtƒr tjdƒ|j|ƒdSt|ƒ\}}}tjd|||fƒ|dkrotj|dƒdS|s¤tj|tj|ƒrÚtj||ƒdSn6|jtj|ƒ}||krÚtj|dƒdS|j|ƒ|jtj|ƒdS(    NsʹÓÃÐÂÊÖ¿¨ codeStr=%ss    ÕýÔÚ²éѯÖÐtGeRen_chenxin_676165s2    ÊÇGM¹¤¾ßÉú³ÉµÄ¿¨, ²éѯGM¹¤¾ßÉú³É¿¨ÊÇ·ñ±»Ê¹ÓùýsA    ·ÇGM¹¤¾ßÉú³ÉµÄ¾É¿¨,curCardType=%s,notifyMsg=%s,dailyGetCnt=%sitGeRen_pan_161234tGeRen_lwh_372238(t    GameWorldtGetPlayerManagertGetPlayerByIndext GetTickByTypetChConfigtTYPE_Player_Tick_NewGuyCardtTYPE_Player_Tick_TimetCodeStrtDebugLogt GetPlayerIDt SetTickByTypetGetQueryNewGuyCardStatet IPY_GameWorldt qngcsQueryingt
ItemCommontCheckPackHasSpacetrptItemt PlayerControlt
NotifyCodetUseCommonNewGuyCardtUseAccIDNewGuyCardt
startswithtStoreInDBCardFlagtSendQueryNewGuyCardStatetGetNewGuyCardTypetGetDictValueByBitt"Def_Player_Dict_UseNewGuyCardStatetNomalDictGetPropertyt Def_Player_Dict_UseNewGuyCardNumtSetDictt!Def_PlayerKey_QueryNewGuyCardType(    tindext
clientDatattickt    curPlayertcodeStrt curCardTypet    notifyMsgt dailyGetCntt repeatGotNum((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewGuyCard.pyt UseNewGuyCardTsJ          cCsrtjdƒ}||kr0tjd|ƒtS||\}}}}}}}    }
|dkr„|jƒ|kr„tj|dƒtS|dkrÕt    j
ƒ} |j ƒ} | | |krÕtj|d|gƒtSntj |t j|ƒ} | rtj||ƒtS|    dkrBtj |t j|    ƒrBtj||ƒtSn|dkrwtj|ƒdkrwtj|dƒtS|\}}}tj||||tjgƒsÄtj|dtjgƒtStj|t j|d    ƒt||d
||ƒ|    dkrtj|t j|    d    ƒn|
rQtjƒj|ƒ}|sB|n    |jƒ}ntjd ||    ||fƒtS( NtCommonCardDatas    ·ÇͨÓÿ¨£¡%sitLvErrtGeRen_hgg_676165ttGeRen_pan_795514Rit
CommonCards9ͨÓÿ¨Ê¹ÓÃOK£¡codeStr=%s,cardType=%s,itemID=%s,itemCnt=%s(t ReadChConfigtGetEvalChConfigRR tFalsetGetLVRRtTruet
PlayerCoint GetCoinRatetGetChangeCoinPointTotalRR    t%Def_Player_Dict_CommonNewGuyCardStateRtGetPastSecondst ItemControlertGivePlayerItemRRtSetDictValueByBitt DoUseReportt GetGameDatatGetItemByTypeIDtGetName(R'R(tCommonCardDictt    cardIndextitemInfot hadUseNotifytneedLVtneedGoldt    validTimetcardTypet
isEventLogt Def_CoinRatetcoinPointTotaltisUsedtitemIDtitemCnttisBandtitemDatatitemName((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewGuyCard.pyRšsL "    !! c    Cs»ttƒ}t|ƒ|dko/t|| ksGtjd|ƒtSt||ƒ}|dkrvtj|dƒt    S|\}}|\}}}}    tj
|t j |ƒ}
|
rÆtj||ƒt    S|    dkrûtj |    ƒdkrûtj|dƒt    S|\} } } tjdt|ƒƒtj|| | | tjgƒs_tj|dtjgƒt    Stj|t j |d    ƒt||d
| | ƒtjd |||| | f|jƒƒt    S( Ni s    ·ÇÖ¸¶¨Õ˺ſ¨ºÅ£¡%sRR1iR2s    itemInfo=%sRit    AccIDCardsIÖ¸¶¨Õ˺ſ¨Ê¹ÓÃOK£¡codeKey=%s,codeStr=%s,cardIndex=%s,itemID=%s,itemCnt=%s(tlentMarkIdCardFlagRR R6tCheckMarkIdCardRuletNoneRRR8RR    t!Def_Player_Dict_IDNewGuyCardStateR=tstrR>R?RRR@RAR(R'R(t    idflagLentcardBackRFtcardInfotcodeKeyRGRHRKRPRQRRRS((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewGuyCard.pyRÖs6 &  !!     c Csç|jƒ}tj|ƒ}tj|ƒ}tjdƒ}x§|jƒD]™\}}|d}tjd||ƒjƒ}    tj|    |ƒjƒ}
t    |
|kr¬||fStj|    |ƒjƒ} t    | |krF||fSqFWdS(NtIDMarkCardDataitwyOu(
tGetAccIDRtGetPlayerPlatformtGetPlatformAccIDR4R5titemstmd5t    hexdigestRX( R'tcardCodetidNametplatformtplatFormIdNametmarkIdCardDataRFR_R`tmarkMD5t md5PlatFormIdtmd5Id((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewGuyCard.pyRYs 
 
c
CsÐd}d}d}tjdƒ}|iks9|dkrF|||fSt|ƒ\}}xh|jƒD]Z\}}xK|tD]?}    t|||    ƒ|kr q|n|}|t}|t}Pq|WqeW|||fS(NiR1t NewGuyCardKey(    R4R5RZt GetCardInfoRftDef_NCard_KeyListtGetRealCardStrtDef_NCard_NotifytDef_NCard_RepeatCnt(
R(R)R*R+tNewGuyCardKeyDicttkeyStrRFRLtvaluestkey((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewGuyCard.pyRs  
 
    cCs`d}tjd|ƒjƒ}t|ƒd||}tj|ƒjƒ}|d ||dS(Nt    CJC729058Rbiiiýÿÿÿ(RgRhR\(RxRFtmarkRzRntrealStrtresult((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewGuyCard.pyRt:s
cCs„d}d}d}t|ƒdkr.||fS|d}|d }yt|dƒ}Wntk
ro||fSX||A}||fS(NiöÒ³iÿÿÿÿR1iiiýÿÿÿi(RWtintt
ValueError(R(txorkeyRFRxtindexNum((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewGuyCard.pyRrHs
 
 
 
c    Cs\tjƒj|ƒ}|jƒr5tj|dƒdS|jƒ}|dkrytj|ƒdkrytj|dƒdSn|jƒ}d}d}d}t
}tj d||j ƒƒ|j tƒry|jƒ}    tj d|    ƒ|    dkrtj|dƒdStjdƒ}
|
j|    ƒ} | dkr1dS| \}} }}| ròtj|tj|    ƒròtj|| ƒdSny|jtjƒ}    tj d    |    ƒtjd
ƒ} | j|    ƒ} | dkrÊdS| t}| t}| t}| t}|dkr'tj|ƒdkr'tj|dƒdS|dkrDtjd ƒdS|sftj|tj|    d ƒnStj|    }|j|ƒ}||kr¢tj|d ƒdStj |||d ƒ|\}}}t!j"||||t#j$gƒstj|dt#j$gƒdS|j%|t&d|    |ƒt'|||    |||ƒtj d||    |||fƒdS(NtGeRen_pan_543685R1iR2s$    ÐÂÊÖ¿¨Ê¹Óûظ´£ºnewGuyCardStr=%ss%    GM¹¤¾ßÉú³ÉµÄDBп¨ curCardType=%sRtStoreInDBCardDatas    Ëã·¨Éú³ÉµÄ¿¨ curCardType=%sRqs=QueryNewGuyCardResult-> Get new guy card item info error:NoneiRRsU    ÐÂÊÖ¿¨Ê¹ÓÃOK£¡newGuyCardStr=%s,curCardType=%s,dailyGetCnt=%s,itemID=%s,itemCnt=%s((RRRtGetNewGuyCardIsUsedRRtGetNewGuyCardValidTimeR=tGetNewGuyCardIDRZR6R RRRtGetNewGuyCardCardTypeR4R5tgetRR    Rt GetDictByKeyR#RvtDef_NCard_ItemInfotDef_NCard_ValidTimetDef_NCard_WriteEventtErrLogR@R!R tNomalDictSetPropertyR>R?RRtSendUpdateNewGuyCardStateR8RA(R$R&R't dbValidTimet newGuyCardStrRKRGR+t isWriteEventR)R„t cardTypeInfoR*tnewGuyCardkeyDicttrepeatGotNumKeyR,RQRRRS((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewGuyCard.pytQueryNewGuyCardStatebs|        
 
 
 
!    !    cCstj|||||ƒdS(N(tDataRecordPacktDR_UseNewGuyCard(R'R’R)RQRRR“((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewGuyCard.pyRAÂs cCs¼tjdƒ}xJ|jƒD]<\}}|tdkr>qntj|tj|dƒqWtjdƒ}xJ|jƒD]<\}}|ddkršqxntj|tj|dƒqxWdS(NRqiR„i(R4R5RfRvRRR    R!(R'RwRLtcardDatatStoreInDBCardDataDictt
dbCardTypet
dbCardData((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewGuyCard.pytNewGuyCardOndayÕsc
Cs¥|dkr tj|dƒdS|dkr@tj|dƒdS|dkratjd|ƒdStj|tj|ƒrtj|dƒdStj|ƒ}tj    d    ƒ}|\}}d}||krÖ||}n2||kr||}    ||    kr|    |}qn|dkr/tj d
||fƒdS|\}
} tj    d ƒ} |
| krttj d |||
fƒdS| |
} t j |tjt| ƒƒ}t| ƒ|krÂtj|d ƒdStj|tj|dƒg}x§| D]Ÿ}|d \}}}t|ƒdkr|dnd}|rGtj|||ttƒ}n*tj||||tjgtdtƒ}|rè|j|ƒqèqèWtj||||ƒdS(s
    GM¹¤¾ß·¢·ÅýÌ忨½±ÀøÎïÆ·, ÕâÀïÖ»×ö·¢·Å½±ÀøÂß¼­£¬¿¨µÄºÏ·¨ÐÔ¼°Ê¹ÓüǼÔÚýÌ忨ÖÐÐÄ·þÎñÆ÷ÅжÏ
    @param cardType: Ã½Ì忨ÖÐÐÄ·þÎñÆ÷ÉèÖõĿ¨ÀàÐÍ
    @param cardCode: Ã½Ì忨Âë
    @param cardState: ¸ÃÍæ¼Òµ±Ç°¿¨ÀàÐÍʹÓÃ״̬£¬ 0 ²»¿ÉÓã¬1.¿ÉÓ÷¢·Å½±Àø £¬2.Òѱ»ËûÈËʹÓÃ
    iRNiRƒis ¸ÃýÌ忨״̬²»´¦Àí: cardState=%stGeRen_admin_327925t    MediaCards/ÕÒ²»µ½¸ÃýÌ忨ÀàÐÍÅäÖÃ, cardType=%s,platform=%stMediaCardAwardItemsJÕÒ²»µ½¸ÃýÌ忨ÎïÆ·Àñ°üÆ·ÖÖ¿âÅäÖÃ, cardType=%s,platform=%s,awardItemMark=%stGeRen_chenxin_998371it showSysInfo(RRRR RR    t!Def_Player_Dict_UseMediaCardStateRdR4R5RZRŽRtGetItemPackSpaceRRRWR@R>tGivePlayerAppointItemR8R?tappendR˜tDR_UseMediaCard(R'RLRit    cardStateRkt MediaCardDicttcommMediaCardDicttplatformMediaCardDictR_tcurPlatformCardDictt awardItemMarkR“tMediaCardAwardItemDictt awardItemListt    packSpacetsuccGiveItemListRGRQt    itemCounttitemBindt    isAppointtisOK((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewGuyCard.pytOnGMTGiveMediaCardAwardItemæsb       
        
 "( RRR    R4RR>t EventReportRR˜R9RgRXRtrangeRsRuRvR‹RŒRR-RRRYRRtRrR—R6RARžR·(((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewGuyCard.pyt<module>)s0                   F    <    +                     `