leiyasi 1 год назад
Родитель
Сommit
b112cf725e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      GameClient/Assets/Game/HotUpdate/Views/Friend/FriendView.cs

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

@@ -166,7 +166,7 @@ namespace GFGGame
         private void OnClickBtnSend(EventContext context)
         {
             GObject item = context.sender as GObject;
-            FriendInfoData friendInfo = item.data as FriendInfoData;
+            FriendInfoData friendInfo = FriendDataManager.Instance.GetFriendDataById((long)item.data);
             if (friendInfo.takeGiftState == ConstBonusStatus.CAN_GET)
             {
                 // if (FriendDataManager.Instance.Count >= GlobalCfgArray.globalCfg.maxGetPowerCount)