|
@@ -13,9 +13,10 @@ namespace ET
|
|
|
{
|
|
|
accountSession = zoneScene.GetComponent<NetKcpComponent>().Create(NetworkHelper.ToIPEndPoint(address));
|
|
|
|
|
|
- a2CLoginAccount = (A2C_LoginAccount)await accountSession.Call(new C2A_LoginTest() {
|
|
|
- Account = account,
|
|
|
- Version = GameConst.SERVER_VERSION
|
|
|
+ a2CLoginAccount = (A2C_LoginAccount)await accountSession.Call(new C2A_LoginTest()
|
|
|
+ {
|
|
|
+ Account = account,
|
|
|
+ Version = GameConst.SERVER_VERSION
|
|
|
});
|
|
|
}
|
|
|
catch (Exception e)
|
|
@@ -48,10 +49,11 @@ namespace ET
|
|
|
{
|
|
|
passwordMD5 = MD5Helper.stringMD5(password);
|
|
|
}
|
|
|
- a2CLoginAccount = (A2C_LoginAccount)await accountSession.Call(new C2A_LoginAccount() {
|
|
|
- Account = account,
|
|
|
- Password = passwordMD5,
|
|
|
- Version = GameConst.SERVER_VERSION
|
|
|
+ a2CLoginAccount = (A2C_LoginAccount)await accountSession.Call(new C2A_LoginAccount()
|
|
|
+ {
|
|
|
+ Account = account,
|
|
|
+ Password = passwordMD5,
|
|
|
+ Version = GameConst.SERVER_VERSION
|
|
|
});
|
|
|
}
|
|
|
catch (Exception e)
|
|
@@ -391,7 +393,7 @@ namespace ET
|
|
|
NoticeInfo noticeInfo = new NoticeInfo();
|
|
|
noticeInfo.noticeId = response.NoticeId;
|
|
|
noticeInfo.title = response.Title;
|
|
|
- noticeInfo.time = response.TimeSec;
|
|
|
+ noticeInfo.time = response.TimeSec * 1000;
|
|
|
noticeInfo.content = response.Content;
|
|
|
|
|
|
NoticeDataManager.Instance.LastNoticeInfo = noticeInfo;
|
|
@@ -403,8 +405,8 @@ namespace ET
|
|
|
A2C_GetRandomRoleName response = null;
|
|
|
try
|
|
|
{
|
|
|
- response = (A2C_GetRandomRoleName)await GameGlobal.zoneScene.GetComponent<SessionComponent>().AccountSession?.Call(new C2A_GetRandomRoleName()
|
|
|
- {
|
|
|
+ response = (A2C_GetRandomRoleName)await GameGlobal.zoneScene.GetComponent<SessionComponent>().AccountSession?.Call(new C2A_GetRandomRoleName()
|
|
|
+ {
|
|
|
ServerId = GameGlobal.zoneScene.GetComponent<ServerInfosComponent>().CurrentServerId
|
|
|
});
|
|
|
}
|