瀏覽代碼

修改好友点赞的data

leiyasi 1 年之前
父節點
當前提交
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)