长通知和切换场景保留消息

This commit is contained in:
Caiyanpeng committed 2022-01-24 15:41:04 +08:00
1 parent 7bb5bafbd2
commit cd162f3325
17 files changed
+1341 -99

No files matched your search

+1 -1
View File
@@ -622,7 +622,7 @@ public class LoginController : BaseScene
//#endif
App.notifyContent = r.data.Value<string>("Content");
if (r.data.Value<int>("Id") != notifyId)//r.data.Value<int>("Id") != notifyId
if (r.data.Value<int>("Id") != notifyId && r.data.Value<int>("Id") != 0)//r.data.Value<int>("Id") != notifyId
{
UIManager.ShowNewsModal();
PlayerPrefs.SetInt("notifyId", r.data.Value<int>("Id"));