hxp
2025-05-20 19cb460b0381096d917361b4791bc897cf323f21
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
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
#-------------------------------------------------------------------------------
#
 
 
from Common import (mylog)
DBConfig = __import__('Config.DBConfig')
 
import urllib
import EventReport as EventReportDll
import GameWorld
 
 
##·¢ËÍʼþ»Ø±¨
#  @param ÎÞ
#  @return ÎÞ 
def EventReport(EventActionID, EventParam):
    if EventActionID in DBConfig.NotReportIDListInDB:
        mylog.debug("EventReport EventActionID(%s) in DBConfig.NotReportIDListInDB=%s" % (EventActionID, DBConfig.NotReportIDListInDB))
        return
    EventReportDll.EventReport(EventActionID, EventParam)
    return
 
 
def ErrorReport(msg=""):
    ''' ÏòÔËά·¢ËÍÓʼþ£¬ÓÃÓÚÐèÒª½ô¼±´¦ÀíµÄÐÅÏ¢
    @param errType: ´íÎóÀàÐÍ£¬×Ô¶¨Òå¼´¿É
    @param msgInfo: ´íÎóÐÅÏ¢£¬¿ÉÑ¡
    '''
    getUrl = "%s?groupID=%s&userDBName=%s&Type=PyMongoError&MsgInfo=%s"%(\
             DBConfig.OpenStateUrl, DBConfig.GroupID, DBConfig.USER_DB_NAME, urllib.quote_plus(msg))
    GameWorld.GetGameWorld().EventReport_EventReport("", "", "", "", 0, getUrl)
    return