fix: 修复bug

This commit is contained in:
barry
2026-07-09 16:37:31 +08:00
parent 7003140acc
commit f2586d11a6
19 changed files with 19013 additions and 19002 deletions
+1 -1
View File
@@ -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);
+3 -1
View File
@@ -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();
+2 -1
View File
@@ -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;
+1 -1
View File
@@ -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);