zhaoyang 3 лет назад
Родитель
Сommit
9b6f9e25c9

+ 2 - 5
GameClient/Assets/Game/HotUpdate/Data/FriendDataManager.cs

@@ -1,5 +1,6 @@
 using System.Collections.Generic;
 using System.Linq;
+using ET;
 
 namespace GFGGame
 {
@@ -17,11 +18,7 @@ namespace GFGGame
         {
             get
             {
-                return _count;
-            }
-            set
-            {
-                _count = value;
+                return GameGlobal.myNumericComponent.GetAsInt(NumericType.TakeFriendGiftCount); ;
             }
         }
 

+ 0 - 1
GameClient/Assets/Game/HotUpdate/ServerProxy/FriendSProxy.cs

@@ -145,7 +145,6 @@ namespace GFGGame
                             FriendDataManager.Instance.AddApplyData(friendInfo);
                         }
                     }
-                    FriendDataManager.Instance.Count = response.TakeGiftCount;
                     return true;
                 }
             }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/Friend/FriendView.cs

@@ -136,7 +136,7 @@ namespace GFGGame
         }
         private void OnClickBtnSend(EventContext context)
         {
-            GObject item = context.data as GObject;
+            GObject item = context.sender as GObject;
             FriendInfoData friendInfo = item.data as FriendInfoData;
             if (friendInfo.takeGiftState == ConstBonusStatus.CAN_GET)
             {