| | |
| | |
|
| | | #默认第一张地图
|
| | | Def_First_MapID = 10010
|
| | |
|
| | | ##玩家游戏账号格式: 平台账号@平台名@s区服ID, 平台账号可能带@,如邮箱yhlz123@qq.com@173on_lan@s519
|
| | | Def_AccID_Split_Sign = "@"
|
| | | ## 登录,登出处理包
|
| | | #
|
| | | # 继承AIBase
|
| | |
| | | # cAccessLogin.MAC = self.robot.GetRobotConfig()[2]
|
| | | # cAccessLogin.Version = ConfigIniReader.GetConfig().GetVersionNo()
|
| | | #=======================================================================
|
| | | accID, spID, sid = self.robot.GetRobotConfig()[1].split("@")
|
| | | |
| | | strList = self.robot.GetRobotConfig()[1].split(Def_AccID_Split_Sign)
|
| | | accID = self.GetPlatformAccID(self.robot.GetRobotConfig()[1])
|
| | | spID = strList[-2]
|
| | | sid = strList[-1]
|
| | | cAccessLogin = tagCPlayerLogin()
|
| | | cAccessLogin.IDType = 1
|
| | | cAccessLogin.AccID = accID
|
| | | cAccessLogin.Password = self.robot.GetRobotConfig()[0]
|
| | | cAccessLogin.Password = "1"*32
|
| | | cAccessLogin.Version = ConfigIniReader.GetConfig().GetVersionNo()
|
| | | cAccessLogin.LineNO = 255
|
| | | cAccessLogin.MAC = self.robot.GetRobotConfig()[2]
|
| | |
| | | #print "New Player Login ---------- ", self.robot.GetRobotConfig()[1]
|
| | | return True
|
| | |
|
| | | ##获取平台账号
|
| | | def GetPlatformAccID(self, gameAccID):
|
| | | infoList = gameAccID.split(Def_AccID_Split_Sign)
|
| | | paInfoList = infoList[:-2]
|
| | | platformAccID = Def_AccID_Split_Sign.join(paInfoList)
|
| | | return platformAccID
|
| | |
|
| | | ## 请求版本
|
| | | # @param None : None
|