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
j­jc@sHddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    dZ
dZ dZ dZ dZead„Zd„Zd    „Zd
„Zd „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zdd„Zd„Z dd„Z!d„Z"dS(iÿÿÿÿNiiimiicCs
|jƒS(N(t    GetValue1(trecData((sqD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSubscribeMsg.pytGetRecMsgFuncType(scCs |j|ƒS(N(t    SetValue1(Rt msgFuncType((sqD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSubscribeMsg.pytSetRecMsgFuncType)scCs
|jƒS(N(t    GetValue2(R((sqD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSubscribeMsg.pytGetRecSuccCntMonth*scCs |j|ƒS(N(t    SetValue2(Rt succCntMonth((sqD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSubscribeMsg.pytSetRecSuccCntMonth+scCs
|jƒS(N(t    GetValue3(R((sqD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSubscribeMsg.pytGetRecNextPushTime,scCs |j|ƒS(N(t    SetValue3(Rt nextPushTime((sqD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSubscribeMsg.pytSetRecNextPushTime-scCs
|jƒS(N(t    GetValue4(R((sqD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSubscribeMsg.pytGetRecLastPushTime.scCs |j|ƒS(N(t    SetValue4(Rt lastPushTime((sqD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSubscribeMsg.pytSetRecLastPushTime/scCst|ƒdS(N(tSync_SubscribeMsgInfo(t    curPlayer((sqD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSubscribeMsg.pyt OnPlayerLogin1s
cCsã|jƒ}tjƒ}|jtj|ƒ}x¯|jƒD]¡}t|ƒ}d}|tkrpt    j
|ƒ}n|t krŽt j |ƒ}nt|t|dƒƒ|dkr¿tj|ƒnd}tjd|||ƒq:WdS(Nit0s7ÉèÖÃÍæ¼Ò¶©ÔÄÏûÏ¢ÍÆËÍʱ¼ä! msgFuncType=%s,pushTimeStr=%s(t GetPlayerIDt    DBDataMgrt GetGameRecMgrtGetRecTypeIDMgrt ShareDefinetDef_GameRecType_SubscribeMsgt GetDataListRtMsgFuncType_Treet
PlayerTreetGetTreeLVUPOKTimetMsgFuncType_GoldRushEnergytPlayerGoldRushtGetGoldPushEnergyFullTimeRtmaxt    GameWorldtChangeTimeNumToStrt
DebugLogEx(RtplayerIDt
gameRecMgrt    subMsgMgrRRtpushTimet pushTimeStr((sqD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSubscribeMsg.pytOnPlayerLogout5s     !cCstjƒ}|jtjƒ}x\|jƒD]N\}}|j|ƒ}x0|jƒD]"}t|ƒrSt    |dƒqSqSWq+WdS(Ni(
RRt GetRecTypeMgrRRtGetRecIDKeyListt GetRecIDMgrRRR
(R+t
recTypeMgrtrecIDt_trecIDMgrR((sqD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSubscribeMsg.pytOnMonthHs  c CsÈtrtjdƒdStjddƒ}|r”t|ƒdkr”|\}}tjƒ}|j}||ksz||kr”tjd||ƒdSnt    t
j
ƒƒ}tj ƒ}tj ƒ}t jƒ}|jtjƒ}    xå|    jƒD]×\}
} |
} |j| ƒ} tj| ƒrqén|    j|
ƒ}xt|jƒƒddd…D]n}|j|ƒ}t|ƒ}|jƒ}|jddƒ}|jd    dƒ}|s¸|j|ƒqNntjd||ƒ}|s|j|ƒtjd
||f| ƒqNn|jƒ}|jƒ}|j ƒ}||krc|j|ƒtjd ||||f| ƒqNnt!|ƒ}|s”tjd |||| ƒqNn||krÈtjd ||tj"|ƒ| ƒqNn|t#kr&|j$ƒ}||}|t%kr…|j|ƒtj&d||f| ƒqNq…n_|t'krNt(|ƒ}|r…||kr…tjd||||| ƒt)|dƒqNq…nqNt*||ƒd||| f}t+j+d|dt,ƒPqNWqéWdS(Ns¶©ÔÄÏûÏ¢ÍÆËÍÄÜÁ¦±»·â½û!t SubscribeMsgiis3µ±Ç°Ê±¼ä²»ÍÆËͶ©ÔÄÏûÏ¢! curHour=%s,pushHourRange=%siÿÿÿÿtmsgIDttaccIDs3ÕÒ²»µ½¶ÔÓ¦ÍÆËÍÏûÏ¢ÀàÐÍÅäÖÃ! appID=%s,msgFuncType=%ss@¶©ÔÄÏûÏ¢SDKÏûÏ¢ID±ä»¯! appID=%s,msgFuncType=%s,recMsgID=%s != %ssA¶©ÔÄÏûÏ¢ÔÝʱ²»ÐèÒªÍÆË͵Ä! appID=%s,msgFuncType=%s,nextPushTime=%ss=¶©ÔÄÏûϢδ´ïÍÆËÍʱ¼ä! appID=%s,msgFuncType=%s,nextPushTime=%ss+Ò»´ÎÐÔ¶©ÔÄÏûÏ¢¹ýÆÚ! appID=%s,msgFuncType=%ssK³¤ÆÚ¶©ÔÄÏûÏ¢ÒÑ´ïÿÔÂÍÆËÍÉÏÏÞ! appID=%s,msgFuncType=%s,succCntMonth=%s >= %sismsgID=%s&accID=%s&playerID=%stsubscribe_notificationt    checkNeed(-tg_subBanR'tErrLogt IpyGameDataPYtGetFuncEvalCfgtlent GetServerTimethourR)tintttimetGetAppIDtGetPlayerManagerRRR0RRR1tFindPlayerByIDtIsNormalPlayerR2trangetGetCounttAtRt GetUserDicttgettDelRecDataByIndextGetIpyGameDatatGetMsgTempTypet GetSDKMsgIDtGetMonthPushMaxR R(tMsgTempType_OncetGetTimet ValidityTimetLogtMsgTempType_LongRRRt EventReporttFalse(t pushHourRangetfromHourttoHourt
serverTimetcurHourtcurTimetappIDt playerManagerR+R3R4R5R*tplayerR6tindexRRtuserDicttrecMsgIDR;tipyDatattempTypetsdkMsgIDt monthPushMaxRtaddTimetpassTimeR    t
eventParam((sqD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSubscribeMsg.pytOnMinuteUs’          &                         
                      cCs
|adS(N(R>(tisBan((sqD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSubscribeMsg.pyt    SetSubBan¶sc Cs†tjƒ}|jtj|ƒ}x^t|jƒƒddd…D]=}|j|ƒ}|jƒ}|j    dƒ|kr}qAnt
|ƒ}t j ƒ}t jd||ƒ}    |    s´Pn|    jƒ}
|
tkröt jd||f|ƒ|j|ƒnV|
tkrLt|ƒd} t jd||| f|ƒt|| ƒt|dƒnt jƒj|ƒ} t j| ƒr}t| ƒnPqAWdS(NiÿÿÿÿR9R8s5Ò»´ÎÐÔ¶©ÔÄÍÆËͳɹ¦Ö±½Óɾ³ý¶©ÔļǼ! appID=%s,msgID=%sis?³¤ÆÚ¶©ÔÄÍÆËͳɹ¦ÀÛ¼ÓÍÆËÍ´ÎÊý! appID=%s,msgID=%s,succCntMonth=%si(RRRRRRKRLRMRNRORR'RGR@RQRRRURXRPRYRR
RRHRIRJR( R*R9R+R,ReRRfRRbRhRiR    R((sqD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSubscribeMsg.pyt OnSubNotifyOK»s4 &        R:cCsÉtjƒ}|jtj|ƒ}xpt|jƒƒddd…D]O}|j|ƒ}|jƒ}|rƒ|j    dƒ|krƒqAn|j
|ƒqAWt j ƒj |ƒ}t j|ƒrÅt|ƒndS(NiÿÿÿÿR9(RRRRRRKRLRMRNRORPR'RHRIRJR(R*R9R+R,ReRRfR((sqD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSubscribeMsg.pyt    DelSubRecás &  cCs/tjƒj|ƒ}|j}t||ƒdS(N(R'RHtGetPlayerByIndext MsgFuncTypetDoSubscribeMsg(Ret
clientDatattickRR((sqD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSubscribeMsg.pytOnSubscribeMsgús     c CsH|jƒ}tjƒ}tjd||ƒ}|s7dS|jƒ}|jƒ}tjd||||f|ƒtj    ƒ}|j
t j |ƒ}xXt |jƒƒddd…D]7}    |j|    ƒ}
t|
ƒ|kr°|j|    ƒq°q°W|r:|jƒ}
t|
|ƒ|
jƒ} | ji|d6|jƒd6ƒnt|ƒ|S(NR8s3¶©ÔÄÏûÏ¢: appID=%s,msgFuncType=%s,msgID=%s,isSub=%siÿÿÿÿR9R;(RR'RGR@RQtGetMsgFuncTypeRStDebugLogRRRRRRKRLRMRRPt
AddRecDataRRNtupdatetGetAccIDR( RRtisSubR*RbRhR9R+R,ReRRf((sqD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSubscribeMsg.pyRvs*      &   $
cCs¢g}tjƒ}|jtj|jƒƒ}x-|jƒD]}t|ƒ}|j|ƒq:W|sgdSt    j
ƒ}||_ t |j ƒ|_ tj||ƒdS(N(RRRRRRRRtappendtChPyNetSendPackttagSCSubscribeMsgInfotMsgFuncTypeListRBtMsgFuncTypeCntt NetPackCommont SendFakePack(RtmsgFuncTypeListR+R,RtfuncTypet
clientPack((sqD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSubscribeMsg.pyR"s       i8"i€3á(#RRRZR$RR…R@R!R'RFR R#RURYRWR[R>RRRR
R RRRRR/R7RoRqRrRsRyRvR(((sqD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSubscribeMsg.pyt<module>sB                                                           a        &      "