This commit is contained in:
SpringHgui 2020-04-01 00:01:32 +08:00
parent 61324186db
commit acdfe23cb3

View File

@ -24,7 +24,11 @@ namespace SuiDao.Client
while (true)
{
Console.Write("请输入登录密钥:");
key = Console.ReadLine();
#if DEBUG
key = "87e931d242884ecaa9c51a5a09a00eef";
#else
key = Console.ReadLine();
#endif
if (string.IsNullOrEmpty(key))
{
@ -64,8 +68,7 @@ namespace SuiDao.Client
var client = servicesProvider.GetRequiredService<FastTunnelClient>();
// https://localhost:5002
//var res = HttpHelper.PostAsJson("https://api1.suidao.io/api/Client/GetServerByKey", $"{{ \"key\":\"{key}\"}}");
var res = HttpHelper.PostAsJson("https://localhost:5002/api/Client/GetServerByKey", $"{{ \"key\":\"{key}\"}}").Result;
var res = HttpHelper.PostAsJson("https://api1.suidao.io/api/Client/GetServerByKey", $"{{ \"key\":\"{key}\"}}").Result;
var jobj = JObject.Parse(res);
if ((bool)jobj["success"] == true)
{