少年修仙传客户端代码仓库
client_Wu Xijin
2019-01-26 1a68ac1832746abd29fad599ab5c3850cb7fe309
3335 解决邮件中聚魂物品不能领取的问题
1个文件已修改
25 ■■■■ 已修改文件
System/FriendSystem/MailPanel.cs 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/FriendSystem/MailPanel.cs
@@ -340,7 +340,7 @@
                        itemCell.gameObject.SetActive(true);
                        MailItemModel itemModel = info.Items[giftCount];
                        ItemCellModel cellModel = new ItemCellModel((int)itemModel.ItemID, false, (ulong)itemModel.Count,
                            itemModel.IsBind,"",PackType.rptDeleted, false, ConfigParse.Analysis(itemModel.UserData));
                            itemModel.IsBind, "", PackType.rptDeleted, false, ConfigParse.Analysis(itemModel.UserData));
                        itemCell.Init(cellModel);
                        itemCell.cellBtn.onClick.RemoveAllListeners();
                        itemCell.cellBtn.onClick.AddListener(() =>
@@ -603,10 +603,10 @@
            {
                if (preReceiveIndex != _nextReceiveIndex)
                {
                    if(_chooseMailList != null && _chooseMailList.Count > _nextReceiveIndex)
                    if (_chooseMailList != null && _chooseMailList.Count > _nextReceiveIndex)
                    {
                        ReceiveAllChooseMail(_nextReceiveIndex, _chooseMailList[_nextReceiveIndex]);
                    }
                    }
                }
            }
@@ -696,11 +696,22 @@
        foreach (var key in GetPackItemDcit.Keys)
        {
            int remainCount = playerPack.GetReaminGridCount(key);
            int getCount = GetPackItemDcit[key];
            if(remainCount < getCount)
            int remainCount = 0;
            switch (key)
            {
                SysNotifyMgr.Instance.ShowTip("GeRen_chenxin_676165",key);
                case PackType.rptGatherSoul:
                case PackType.rptRunePack:
                    remainCount = virtualPackModel.GetPackRemainCount(key);
                    break;
                default:
                    remainCount = playerPack.GetReaminGridCount(key);
                    break;
            }
            int getCount = GetPackItemDcit[key];
            if (remainCount < getCount)
            {
                SysNotifyMgr.Instance.ShowTip("GeRen_chenxin_676165", key);
                return;
            }
        }