fix: 修复bug
This commit is contained in:
@@ -11,7 +11,7 @@ public class LoveLegendRoot : MonoBehaviour
|
||||
public void Awake()
|
||||
{
|
||||
#if !UNITY_EDITOR || GAME_RELEASE
|
||||
GameObject.Find("IngameDebugConsole").SetActive(true);
|
||||
GameObject.Find("IngameDebugConsole").SetActive(false);
|
||||
#endif
|
||||
MaxADKit.Init();
|
||||
// SGModule.Net.NetworkKit.Instance.InitData(NetworkManager.identifier,true);
|
||||
|
||||
@@ -84,8 +84,10 @@ namespace RedHotRoast
|
||||
|
||||
AppDispatcher.Instance.Dispatch(AppMsg.AppManagerRegister);
|
||||
AppDispatcher.Instance.Dispatch(AppMsg.InitUIMgr);
|
||||
#if UNITY_EDITOR
|
||||
NetworkDispatcher.Instance.Dispatch(NetworkMsg.Login);
|
||||
|
||||
#endif
|
||||
|
||||
AppDispatcher.Instance.AddListener(AppMsg.LoginInit, OnLoadingComplete);
|
||||
|
||||
// PreferencesMgr.Instance.InitPreferences();
|
||||
|
||||
@@ -486,7 +486,8 @@ namespace RedHotRoast
|
||||
ui.btn_vip.SetClick(onClickVip);
|
||||
|
||||
WebviewManager.Instance.SetDarkThough(true);
|
||||
|
||||
|
||||
ui.btn_wv.visible = GameHelper.IsGiftSwitch();
|
||||
ui.btn_wv.SetClick(() =>
|
||||
{
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.H5UI_Open);
|
||||
|
||||
@@ -442,6 +442,7 @@ namespace RedHotRoast
|
||||
ui.btn_back.SetClick(BackFunc);
|
||||
ui.btn_refresh.SetClick(RefreshFunc);
|
||||
|
||||
ui.btn_wv.visible = GameHelper.IsGiftSwitch();
|
||||
|
||||
ui.btn_wv.SetClick(() =>
|
||||
{
|
||||
|
||||
@@ -252,7 +252,8 @@ namespace RedHotRoast
|
||||
item.discount.visible = !GameHelper.IsAdModelOfPay() && list[index].Discount_rate > 0;
|
||||
|
||||
if (list[index].Discount_rate != 0) item.off_text.text = list[index].Discount_rate + "%";
|
||||
|
||||
|
||||
Debug.Log($"GameHelper.IsAdModelOfPay()====={GameHelper.IsAdModelOfPay()}");
|
||||
if (time + list[index].receive_CD < GameHelper.GetNowTime())
|
||||
{
|
||||
item.btn_buy.can_buy.selectedIndex = 0;
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace RedHotRoast
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.NetworkErrorTipsUI_Open);
|
||||
LoginKit.Instance.LoginRequest(SuperApplication.Instance.attribution, NetworkManager.haveSimCard, (isSuccess, loginData) =>
|
||||
{
|
||||
Debug.Log($"登陆结果: {isSuccess}");
|
||||
Debug.Log($"登陆结果: {isSuccess} {loginData.Enwp}");
|
||||
TrackKit.TrackLoginFunnel(LoginFunnelEventType.LoginRecv, isSuccess ? "success" : "fail");
|
||||
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.NetworkErrorTipsUI_Close);
|
||||
|
||||
Reference in New Issue
Block a user