Archived
1
0
Fork 0
forked from Moux23333/FreeSR
This repository has been archived on 2024-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
FreeSR/FreeSR.Dispatch/Util/DispatchHelper.cs
2024-01-27 21:08:24 +08:00

38 lines
1.2 KiB
C#

namespace FreeSR.Dispatch.Util
{
using FreeSR.Database.Account.Model;
using Newtonsoft.Json.Linq;
internal static class DispatchHelper
{
public static JObject ToLoginResponseData(this AccountModel model)
{
return new JObject
{
{"uid", model.Uid},
{"name", model.Name},
{"email", "reversedrooms"},
{"mobile", ""},
{"is_email_verify", "0"},
{"realname", ""},
{"identity_card", ""},
{"safe_mobile", ""},
{"facebook_name", ""},
{"google_name", ""},
{"twitter_name", ""},
{"game_center_name", ""},
{"apple_name", ""},
{"sony_name", ""},
{"tap_name", ""},
{"country", "CN"},
{"reactivate_ticket", ""},
{"area_code", "**"},
{"device_grant_ticket", ""},
{"steam_name", ""},
{"unmasked_email", ""},
{"unmasked_email_type", 0},
{"token", model.Token}
};
}
}
}