| | |
| | | paInfoList = infoList[:-2]
|
| | | platformAccID = Def_AccID_Split_Sign.join(paInfoList)
|
| | | return platformAccID
|
| | | def GetAppIDByAccID(gameAccID):
|
| | | ## 根据账号获取appID
|
| | | infoList = gameAccID.split(Def_AccID_Split_Sign)
|
| | | return infoList[-2]
|
| | |
|
| | | def GetSessionID(curPlayer):
|
| | | return md5.md5(curPlayer.GetAccID() + curPlayer.GetAccountData().GetLastLoginTime() +'mobile').hexdigest()
|
| | |
| | | ## 跨服服务器时间
|
| | | if IsCrossServer():
|
| | | return GetCurrentDataTimeStr()
|
| | | lastCrossServerTime, lastServerTime, _ = PyGameData.g_crossServerTimeInfo
|
| | | lastCrossServerTime, lastServerTime = PyGameData.g_crossServerTimeInfo
|
| | | if not lastCrossServerTime:
|
| | | return GetCurrentDataTimeStr()
|
| | | curTime = int(time.time())
|