1.6.55
This commit is contained in:
@@ -5,51 +5,56 @@
|
||||
using FreeSR.Proto;
|
||||
using NLog;
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization.Formatters.Binary;
|
||||
using System.Text;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
internal static class PlayerReqGroup
|
||||
{
|
||||
private static readonly Logger s_log = LogManager.GetCurrentClassLogger();
|
||||
|
||||
[Handler(CmdType.PlayerHeartBeatCsReq)]
|
||||
[Handler(CmdType.CmdPlayerHeartBeatCsReq)]
|
||||
public static void OnPlayerHeartBeatCsReq(NetSession session, int cmdId, object data)
|
||||
{
|
||||
var heartbeatReq = data as PlayerHeartBeatCsReq;
|
||||
|
||||
session.Send(CmdType.PlayerHeartBeatScRsp, new PlayerHeartBeatScRsp
|
||||
session.Send(CmdType.CmdPlayerHeartBeatScRsp, new PlayerHeartBeatScRsp
|
||||
{
|
||||
Retcode = Retcode.RETCODE_RET_SUCC,
|
||||
Retcode = (uint)RetcodeStatus.RetSucc,
|
||||
|
||||
DownloadData = new ClientDownloadData(),
|
||||
ClientTimeMs = heartbeatReq.ClientTimeMs,
|
||||
ServerTimeMs = DateTimeOffset.Now.ToUnixTimeMilliseconds()
|
||||
ServerTimeMs = (ulong)DateTimeOffset.Now.ToUnixTimeMilliseconds()
|
||||
});
|
||||
}
|
||||
|
||||
[Handler(CmdType.GetHeroBasicTypeInfoCsReq)]
|
||||
[Handler(CmdType.CmdGetHeroBasicTypeInfoCsReq)]
|
||||
public static void OnGetHeroBasicTypeInfoCsReq(NetSession session, int cmdId, object _)
|
||||
{
|
||||
session.Send(CmdType.GetHeroBasicTypeInfoScRsp, new GetHeroBasicTypeInfoScRsp
|
||||
session.Send(CmdType.CmdGetHeroBasicTypeInfoScRsp, new GetHeroBasicTypeInfoScRsp
|
||||
{
|
||||
Retcode = Retcode.RETCODE_RET_SUCC,
|
||||
Retcode = (uint)RetcodeStatus.RetSucc,
|
||||
Gender = Gender.GenderMan,
|
||||
BasicTypeInfoList = new List<HeroBasicTypeInfo>
|
||||
{
|
||||
new HeroBasicTypeInfo
|
||||
Cdkjkpnjjjas ={
|
||||
new Hlbbodklpbo
|
||||
{
|
||||
BasicType = HeroBasicType.BoyWarrior,
|
||||
Peihhlcchfj = HeroBasicType.BoyWarrior,
|
||||
Rank = 1,
|
||||
SkillTreeList = new List<AvatarSkillTree>()
|
||||
Chmeifanmags = {}
|
||||
}
|
||||
},
|
||||
CurBasicType = HeroBasicType.BoyWarrior,
|
||||
IsPlayerInfoModified = false,
|
||||
IsGenderModified = false
|
||||
Bhepmbpaojp = false,
|
||||
Cnlbajkmnbn = false
|
||||
});
|
||||
}
|
||||
|
||||
[Handler(CmdType.GetBasicInfoCsReq)]
|
||||
[Handler(CmdType.CmdGetBasicInfoCsReq)]
|
||||
public static void OnGetBasicInfoCsReq(NetSession session, int cmdId, object _)
|
||||
{
|
||||
session.Send(CmdType.GetBasicInfoScRsp, new GetBasicInfoScRsp
|
||||
session.Send(CmdType.CmdGetBasicInfoScRsp, new GetBasicInfoScRsp
|
||||
{
|
||||
CurDay = 1,
|
||||
ExchangeTimes = 0,
|
||||
@@ -59,55 +64,61 @@
|
||||
});
|
||||
}
|
||||
|
||||
[Handler(CmdType.PlayerLoginCsReq)]
|
||||
[Handler(CmdType.CmdPlayerLoginCsReq)]
|
||||
public static void OnPlayerLoginCsReq(NetSession session, int cmdId, object data)
|
||||
{
|
||||
var request = data as PlayerLoginCsReq;
|
||||
|
||||
session.Send(CmdType.PlayerLoginScRsp, new PlayerLoginScRsp
|
||||
session.Send(CmdType.CmdPlayerLoginScRsp, new PlayerLoginScRsp
|
||||
{
|
||||
Retcode = Retcode.RETCODE_RET_SUCC,
|
||||
IsNewPlayer = false,
|
||||
Retcode = (uint)RetcodeStatus.RetSucc,
|
||||
//IsNewPlayer = false,
|
||||
LoginRandom = request.LoginRandom,
|
||||
Stamina = 100,
|
||||
ServerTimestampMs = DateTimeOffset.Now.ToUnixTimeSeconds() * 1000,
|
||||
ServerTimestampMs = (ulong)DateTimeOffset.Now.ToUnixTimeSeconds() * 1000,
|
||||
BasicInfo = new PlayerBasicInfo
|
||||
{
|
||||
Nickname = "xeondev",
|
||||
Level = 30,
|
||||
Level = 70,
|
||||
Exp = 0,
|
||||
Stamina = 100,
|
||||
MCoin = 0,
|
||||
HCoin = 0,
|
||||
SCoin = 0,
|
||||
WorldLevel = 0
|
||||
Mcoin = 0,
|
||||
Hcoin = 0,
|
||||
Scoin = 0,
|
||||
WorldLevel = 6
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
[Handler(CmdType.PlayerGetTokenCsReq)]
|
||||
[Handler(CmdType.CmdPlayerGetTokenCsReq)]
|
||||
public static void OnPlayerGetTokenCsReq(NetSession session, int cmdId, object data)
|
||||
{
|
||||
var request = data as PlayerGetTokenCsReq;
|
||||
|
||||
session.Send(CmdType.PlayerGetTokenScRsp, new PlayerGetTokenScRsp
|
||||
session.Send(CmdType.CmdPlayerGetTokenScRsp, new PlayerGetTokenScRsp
|
||||
{
|
||||
Retcode = Retcode.RETCODE_RET_SUCC,
|
||||
Uid = int.Parse(request.AccountUid),
|
||||
BlackInfo = null,
|
||||
Msg = null,
|
||||
Retcode = (uint)RetcodeStatus.RetSucc,
|
||||
Uid = 1337,
|
||||
//BlackInfo = null,
|
||||
Msg = "OK",
|
||||
SecretKeySeed = 0
|
||||
});
|
||||
|
||||
session.Send(CmdType.BattlePassInfoNotify, new BattlePassInfoNotify
|
||||
byte[] decodedBytes = Convert.FromBase64String("eyJPcGdpbW5rb2tuanMiOlt7Iklvbm1sb2tjZ25nIjowLCJCZWdpblRpbWUiOjAsIkpvZGlwZ2xkb2hqIjoiIiwiR2djYWFrZ2ZjYm8iOmZhbHNlLCJFbmRUaW1lIjoyMDIxOTc4Nzc0LCJEZWxnam5jaGxwaiI6IiIsIkNvbmZpZ0lkIjowLCJKaGpiZ21tcGNjaiI6IkZyZWVTUiBpcyBhIGZyZWUgYW5kIG9wZW4tc291cmNlIHNvZnR3YXJlLCBpZiB5b3UgcGFpZCBmb3IgdGhpcywgeW91IGhhdmUgYmVlbiBzY2FtbWVkISBGcmVlU1LmmK/kuIDkuKrlhY3otLnkuJTlvIDmupDnmoTova/ku7bvvIzlpoLmnpzkvaDmmK/oirHpkrHkubDmnaXnmoTvvIzor7TmmI7kvaDooqvpqpfkuobvvIFyZXBvc2l0b3J5IGxpbmsg5LuT5bqT5Zyw5Z2AOmh0dHBzOi8vZ2l0Lnhlb25kZXYuY29tL01vdXgyMzMzMy9GcmVlU1IiLCJLcGZmY2hjb2xlZCI6MH1dfQ==");
|
||||
string decodedJsonData = Encoding.UTF8.GetString(decodedBytes);
|
||||
ServerAnnounceNotify announceNotify = JsonConvert.DeserializeObject<ServerAnnounceNotify>(decodedJsonData);
|
||||
|
||||
session.Send(10, announceNotify);
|
||||
/*session.Send(10, new ServerAnnounceNotify
|
||||
{
|
||||
Ibkdaabmege = ILGFODEJBBH.BP_TIER_TYPE_PREMIUM_2,
|
||||
Caajdlolcml = 0,
|
||||
Ipneaeepcmk = 4,
|
||||
Okffhjicndl = 0,
|
||||
Exp = 1000,
|
||||
Level = 50
|
||||
});
|
||||
Opgimnkoknjs =
|
||||
{
|
||||
new AnnounceData
|
||||
{
|
||||
BeginTime = 0,
|
||||
EndTime = DateTimeOffset.Now.ToUnixTimeSeconds() + 10,
|
||||
Jhjbgmmpccj = @"FreeSR is a free and open-source software, if you paid for this, you have been scammed! FreeSR是一个免费且开源的软件,如果你是花钱买来的,说明你被骗了!repository link 仓库地址:https://git.xeondev.com/Moux23333/FreeSR"
|
||||
}
|
||||
}
|
||||
});*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user