From f84fa9a681bb97fd7eb0bd01691459ba99eb477e Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期日, 30 九月 2018 15:50:18 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/FriendSystem/MailAllModel.cs | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/System/FriendSystem/MailAllModel.cs b/System/FriendSystem/MailAllModel.cs
index 61414ad..afee47a 100644
--- a/System/FriendSystem/MailAllModel.cs
+++ b/System/FriendSystem/MailAllModel.cs
@@ -63,20 +63,28 @@
}
AwardExchangeModel exchangeModel { get { return ModelCenter.Instance.GetModel<AwardExchangeModel>(); } }
-
+ bool isLogin = true;
public MailAllModel()
{
DTC0102_tagCDBPlayer.beforePlayerDataInitializeEvent += BeforePlayerDataInit;
+ DTC0403_tagPlayerLoginLoadOK.playerLoginOkEvent += OnPlayerLoginOk;
}
private void BeforePlayerDataInit()
{
+ isLogin = true;
funcType = MailFuncType.Mail;
mailModelDict.Clear();
timeOrderMailInfo.Clear();
mailTitleStr = "";
mailContentstr = "";
mailSendPersonStr = "";
+ }
+
+
+ private void OnPlayerLoginOk()
+ {
+ isLogin = false;
}
public MailFuncType funcType = MailFuncType.Mail;
@@ -171,6 +179,16 @@
{
exchangeModel.SetAwardExchangeModel(info.Items);
}
+
+ if(!isLogin)
+ {
+ if (info.Count > 0 || info.Gold > 0 || info.GoldPaper > 0
+ || info.Silver > 0)
+ {
+ SoundPlayer.Instance.PlayUIAudio(740);
+ }
+ }
+
}
}
addMailCnt = mailModelDict.Count - preMailCnt;
--
Gitblit v1.8.0