mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-13 15:34:36 +01:00
Initial commit
This commit is contained in:
18
nksrv/IntlServer/IntlGetProfileBindInfo.cs
Normal file
18
nksrv/IntlServer/IntlGetProfileBindInfo.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
namespace nksrv.IntlServer
|
||||
{
|
||||
internal class IntlGetProfileBindInfo : IntlMsgHandler
|
||||
{
|
||||
public override bool RequiresAuth => true;
|
||||
|
||||
protected override async Task HandleAsync()
|
||||
{
|
||||
if (User == null)
|
||||
throw new Exception("no user"); // should never happen
|
||||
|
||||
|
||||
// TODO: last login time, but is it needed?
|
||||
WriteJsonString("{\"bind_list\":[{\"bind_ts\":1717783095,\"channel_info\":{\"birthday\":\"1970-01\",\"email\":\"" + User.Username + "\",\"is_receive_email\":1,\"lang_type\":\"en\",\"last_login_time\":171000000,\"nick_name\":\"\",\"phone\":\"\",\"phone_area_code\":\"\",\"region\":\"724\",\"register_account\":\"" + User.Username + "\",\"register_account_type\":1,\"register_time\":" + User.RegisterTime + ",\"seq\":\"" + Seq + "\",\"uid\":\"2752409592679849\",\"user_name\":\"" + User.PlayerName + "\",\"username_pass_verify\":0},\"channelid\":131,\"email\":\"" + User.Username + "\",\"history_scopes\":[],\"is_primary\":1,\"picture_url\":\"\",\"user_name\":\"" + User.PlayerName + "\"}],\"create_ts\":" + User.RegisterTime + ",\"last_login_ts\":171000000,\"msg\":\"success\",\"ret\":0,\"seq\":\"" + Seq + "\"}");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user