Bläddra i källkod

修改好友点赞的data

leiyasi 1 år sedan
förälder
incheckning
b112cf725e
1 ändrade filer med 1 tillägg och 1 borttagningar
  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)