#!/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