This commit is contained in:
2026-10-07 23:05:51 +08:00
parent 3b20ffaf11
commit 752d4c8070
9 changed files with 145 additions and 128 deletions
+4 -3
View File
@@ -142,10 +142,11 @@ public class UIHomeMain : UIBase
});
btn_ChouJiang.onClick.AddListener(() =>
{
// 接收配置信息时直接判断:未开启不打开面板,避免面板先弹出又关掉的闪烁
APIRequestList.GetLotteryActivityConfig(cfg =>
// 接收配置信息时直接判断(/api/Lottery/Config 新版统一接口):
// 未开启不打开面板,避免面板先弹出又关掉的闪烁
APIRequestList.GetLotteryConfig(res =>
{
if (cfg != null && !cfg.isOpen)
if (res != null && res.config != null && !res.config.isOpen)
{
UIManager.Instance.ShowTiShi("活动未开启");
return;