fix loading screen hang, only allow gacha tutorial once

This commit is contained in:
Mikhail
2024-07-04 08:25:23 -04:00
parent 40f78db301
commit 400ab96fc1
7 changed files with 21 additions and 12 deletions

View File

@@ -25,6 +25,8 @@ namespace nksrv.IntlServer
if (item.Username == ep.account && item.Password == ep.password)
{
var tok = IntlHandler.CreateLauncherTokenForUser(item);
item.LastLogin = DateTime.UtcNow;
JsonDb.Save();
WriteJsonString("{\"expire\":" + tok.ExpirationTime + ",\"is_login\":true,\"msg\":\"Success\",\"register_time\":" + item.RegisterTime + ",\"ret\":0,\"seq\":\"" + Seq + "\",\"token\":\"" + tok.Token + "\",\"uid\":\"" + item.ID + "\"}");
return;