Selaa lähdekoodia

添加参与日志

zhaoyang 3 vuotta sitten
vanhempi
commit
a2cbbf020d

+ 0 - 7
GameClient/Assets/Game/HotUpdate/Data/LogDataManager.cs

@@ -1,7 +0,0 @@
-namespace GFGGame
-{
-    public class LogDataManager : SingletonBase<LogDataManager>
-    {
-        // public void 
-    }
-}

+ 0 - 11
GameClient/Assets/Game/HotUpdate/Data/LogDataManager.cs.meta

@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 63a354c1887dac34db37e10f89a4dfc4
-MonoImporter:
-  externalObjects: {}
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpView.cs

@@ -2,6 +2,7 @@ using UI.DressUp;
 using FairyGUI;
 using UnityEngine;
 using System.Collections.Generic;
+using ET;
 
 namespace GFGGame
 {
@@ -708,6 +709,7 @@ namespace GFGGame
         }
         private void OnClickBtnPhoto()
         {
+            LogServerHelper.SendNodeLog((int)PlayParticipationEnum.PAI_ZHAO, 1);
 
             if (!ViewManager.Show<PhotographView>())
             {

+ 13 - 0
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryLevelInfoView.cs

@@ -3,6 +3,7 @@ using UI.Main;
 using System.Collections.Generic;
 using UI.CommonGame;
 using System;
+using ET;
 
 namespace GFGGame
 {
@@ -63,6 +64,7 @@ namespace GFGGame
 
         private void OnClickBtnStart()
         {
+            SendLog();
 
             // int time = InstanceZonesDataManager.GetCanFightTime(_levelID);
             InstanceZonesDataManager.GetCanFightTime(_type, _storyType, _levelID, out int times, out string title);
@@ -260,6 +262,17 @@ namespace GFGGame
             item.m_txtTag.text = tag[1];
         }
 
+        private void SendLog()
+        {
+            var levelCfg = StoryLevelCfgArray.Instance.GetCfg(_levelID);
+
+            switch (levelCfg.type)
+            {
+                case ConstInstanceZonesType.Story:
+                    LogServerHelper.SendNodeLog((int)PlayParticipationEnum.CHUN_ZHONG_LOU, 2);
+                    break;
+            }
+        }
         protected override void UpdateToCheckGuide(object param)
         {
 

+ 15 - 0
GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

@@ -172,6 +172,7 @@ namespace GFGGame
 
         private void OnClickBtnMain()
         {
+            LogServerHelper.SendNodeLog((int)PlayParticipationEnum.CHUN_ZHONG_LOU, 1);
             if (isOpen) return;
             isOpen = true;
             _ui.m_btnMain.m_holder1.visible = true;
@@ -205,6 +206,8 @@ namespace GFGGame
 
         private void OnClickBtnZhaiXing()
         {
+            LogServerHelper.SendNodeLog((int)PlayParticipationEnum.ZAI_XING, 1);
+
             if (isOpen) return;
             isOpen = true;
             _ui.m_btnZhaiXing.m_holder1.visible = true;
@@ -252,6 +255,8 @@ namespace GFGGame
         }
         private void OnClickBtnCiPai()
         {
+            LogServerHelper.SendNodeLog((int)PlayParticipationEnum.CI_PAI, 1);
+
             if (isOpen) return;
             isOpen = true;
             _ui.m_btnCiPai.m_holder1.visible = true;
@@ -271,16 +276,22 @@ namespace GFGGame
         }
         private void OnClickBtnField()
         {
+            LogServerHelper.SendNodeLog((int)PlayParticipationEnum.TIAN_YE_DIAO_CHA, 1);
+
             ViewManager.Show<FieldView>(null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
         }
 
         private void OnClickBtnStore()
         {
+            LogServerHelper.SendNodeLog((int)PlayParticipationEnum.SHANG_CHENG, 1);
+
             ViewManager.Show(ViewName.RECHARGE_STORE_VIEW);
         }
 
         private void OnClickBtnTuJian()
         {
+            LogServerHelper.SendNodeLog((int)PlayParticipationEnum.TU_JIAN, 1);
+
             ViewManager.Show(ViewName.FIELD_GUIDE_VIEW, null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
         }
         private void OnClickBtnYouJian()
@@ -289,6 +300,8 @@ namespace GFGGame
         }
         private void OnClickBtnHaoYou()
         {
+            LogServerHelper.SendNodeLog((int)PlayParticipationEnum.MEI_RI_REN_WU, 1);
+
             ViewManager.Show<FriendView>(null, new object[] { ViewName.MAINUI_VIEW, this.viewData }, true);
         }
         private void OnClickBtnGongGao()
@@ -298,6 +311,8 @@ namespace GFGGame
         }
         private void OnClickBtnRenWu()
         {
+            LogServerHelper.SendNodeLog((int)PlayParticipationEnum.MEI_RI_DNEG_LU, 1);
+
             ViewManager.Show<DailyTaskView>();
         }
         private void OnClickHeadBar()

+ 7 - 0
GameClient/Assets/Game/HotUpdate/Views/Studio/StudioView.cs

@@ -1,4 +1,5 @@
 
+using ET;
 using UI.Studio;
 using UnityEngine;
 
@@ -55,16 +56,22 @@ namespace GFGGame
 
         private void OnClickComMetal()
         {
+            LogServerHelper.SendNodeLog((int)PlayParticipationEnum.JIN_SHU_XIU_FU, 1);
+
             if (!FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioMetalView).FullName, true)) return;
             ViewManager.Show<StudioMetalView>(new object[] { 0, 0 }, new object[] { typeof(StudioView).Name, this.viewData });
         }
         private void OnCliclComFabric()
         {
+            LogServerHelper.SendNodeLog((int)PlayParticipationEnum.ZHI_WU_XIU_FU, 1);
+
             if (!FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioFabricView).FullName, true)) return;
             ViewManager.Show<StudioFabricView>(new object[] { 0, 0 }, new object[] { typeof(StudioView).Name, this.viewData });
         }
         private void OnComProperty()
         {
+            LogServerHelper.SendNodeLog((int)PlayParticipationEnum.SHU_HUA_XIU_FU, 1);
+
             if (!FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioPropertyView).FullName, true)) return;
             ViewManager.Show<StudioPropertyView>(new object[] { 1, 0 }, new object[] { typeof(StudioView).Name, this.viewData });
         }

+ 8 - 0
GameClient/Assets/Game/HotUpdate/Views/XiuFang/XiuFangView.cs

@@ -2,6 +2,7 @@
 using UnityEngine;
 using UI.XiuFang;
 using FairyGUI;
+using ET;
 
 namespace GFGGame
 {
@@ -57,6 +58,7 @@ namespace GFGGame
 
         private void OnClickBtnClothingShop()
         {
+            LogServerHelper.SendNodeLog((int)PlayParticipationEnum.FU_ZHUANG_DIAN, 1);
             ViewManager.Show(ViewName.CLOTHING_SHOP_VIEW, null, new object[] { ViewName.XIU_FANG_VIEW, this.viewData }, false, true);
             this.Hide();
 
@@ -64,17 +66,23 @@ namespace GFGGame
 
         private void OnClickBtnSuitSynthetic()
         {
+            LogServerHelper.SendNodeLog((int)PlayParticipationEnum.FU_ZHUANG_HE_CHENG, 1);
+
             ViewManager.Show(ViewName.SUIT_SYNTHETIC_LIST_VIEW, null, new object[] { ViewName.XIU_FANG_VIEW, this.viewData });
         }
 
         private void OnClickBtnClothingUpgrade()
         {
+            LogServerHelper.SendNodeLog((int)PlayParticipationEnum.FU_ZHUANG_YANG_CHENG, 1);
+
             ViewManager.Show<SuitListView>(null, new object[] { ViewName.XIU_FANG_VIEW, this.viewData }, false, true);
 
             // PromptController.Instance.ShowFloatTextPrompt("暂未开放", MessageType.WARNING);
         }
         private void OnClickBtnDecompose()
         {
+            LogServerHelper.SendNodeLog((int)PlayParticipationEnum.FU_ZHUANG_FEN_JIE, 1);
+
             ViewManager.Show<ClothingDecomposeView>(null, new object[] { ViewName.XIU_FANG_VIEW, this.viewData });
 
         }