16 卡牌服务端(废弃平台配置,暂时只使用AppID;)
| | |
| | | if len(inputList) != 2:
|
| | | return
|
| | | gmLV = GameWorld.ToIntDef(inputList[1])
|
| | | playerPF = GameWorld.GetPlatform()
|
| | | playerPF = GameWorld.GetAppID()
|
| | | # curIP = curPlayer.GetIP()
|
| | | # if (curIP.find('10.30.') == 0 or curIP.find('192.168.') == 0) and playerPF == "173on_lan":
|
| | | #测试修改
|
| | |
| | | # return serverID
|
| | | #return MainServerDict[serverID]
|
| | |
|
| | | ##获得当前服务器平台
|
| | | # @param 无
|
| | | # @return
|
| | | def GetPlatform():
|
| | | return ReadChConfig.GetPyMongoConfig("platform", "PlatformName")
|
| | |
|
| | | def GetAppID():
|
| | | ## 获取渠道ID
|
| | | return ReadChConfig.GetPyMongoConfig("platform", "AppID")
|
| | |
| | | #maxCustomServerDayMix = IpyGameDataPY.GetFuncCfg("MixServer", 1) # 定制运营活动最大合服天
|
| | | operationTodayActionDict = {}
|
| | | PyGameData.g_operationActionDict = {}
|
| | | platform = GameWorld.GetPlatform()
|
| | | platform = GameWorld.GetAppID() # 暂时先直接用AppID,废弃平台配置
|
| | | serverID = GameWorld.GetGameWorld().GetServerID()
|
| | | ipyDataMgr = IpyGameDataPY.IPY_Data()
|
| | | curWeekday = curDateTime.weekday() + 1 # 今天星期几, 1代表星期1
|