This commit is contained in:
2026-07-14 14:48:39 +08:00
parent 27b82c051c
commit e356348b3d
49 changed files with 352 additions and 467 deletions
@@ -2,6 +2,7 @@ using System.Collections;
namespace ScrewsMaster
{
using DG.Tweening;
using UnityEngine;
public class LoginSystem : BaseSystem
@@ -121,6 +122,30 @@ namespace ScrewsMaster
loginModel.play_data_ver = loginData.play_data_ver;
loginModel.debug_log = loginData.debug_log;
loginModel.enwp = loginData.enwp;
if (loginData.is_magic)
{
if (PlayerPrefs.GetInt("is_gift") != 1)
{
AppDispatcher.Instance.Dispatch(AppMsg.UI_DisplayLoadingUI);
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.LoginAUI_Close);
}
PlayerPrefs.SetInt("is_gift", 1);
}
else
{
#if BingoBrainRelease
BrigdeIOS.showGameA(true);
#else
AppDispatcher.Instance.Dispatch(AppMsg.Show_uid);
DOVirtual.DelayedCall(2, () =>
{
BrigdeIOS.showGameA(true);
});
#endif
return;
}
loginModel.preferences = new Preferences();
NetworkKit.CDNUrl = $"{loginData.cdn_url}/";
NetworkKit.userId = loginData.uid;