提交
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user