少年修仙传客户端代码仓库
client_linchunjie
2019-06-10 dc4502c5c9282bd56278fafefb4eb5d323f746f7
3980 【BUG】【2.0】红包数量错误
1个文件已修改
30 ■■■■ 已修改文件
System/FairyAu/GiveRedBagTipsWin.cs 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/FairyAu/GiveRedBagTipsWin.cs
@@ -36,6 +36,8 @@
        private int _NumberNumerical = 0;//数量数值
        private string _content = null;
        private int minRedpackCount = 10;
       // private int _Number = 0;//用来获取仙盟的人数
        private int _RedLines = 0;//红包额度
        RedPacketModel m_RedPacket;
@@ -80,10 +82,10 @@
        {
            if (int.Parse(NumKeyboardNumber.Value) <= (int)PlayerDatas.Instance.fairyData.fairy.MemberCount)
            {
                if (!RedBagTipsWin._RedBagTipsWin._RedBool && int.Parse(NumKeyboardNumber.Value) <= 10)
                if (!RedBagTipsWin._RedBagTipsWin._RedBool && int.Parse(NumKeyboardNumber.Value) <= minRedpackCount)
                {
                    NumKeyboardNumber.Value = 10.ToString();
                    _NumberNumerical = 10;//仙盟红包至少10包
                    NumKeyboardNumber.Value = minRedpackCount.ToString();
                    _NumberNumerical = minRedpackCount;//仙盟红包至少10包
                }
                else
                {
@@ -100,9 +102,9 @@
            {
                if (!RedBagTipsWin._RedBagTipsWin._RedBool)
                {
                    if (PlayerDatas.Instance.fairyData.fairy.MemberCount <= 10)
                    if (PlayerDatas.Instance.fairyData.fairy.MemberCount <= minRedpackCount)
                    {
                        NumKeyboardNumber.Value = 10.ToString();
                        NumKeyboardNumber.Value = minRedpackCount.ToString();
                    }
                    else
                    {
@@ -212,17 +214,27 @@
            }
            else
            {
                var getWay = redPacket._DicRedBag[redPacket.RedBagId].GetWay;
                var configs = RedPackConfig.GetValues();
                foreach (var config in configs)
                {
                    if (config.RedEnvelopeType == getWay)
                    {
                        minRedpackCount = config.PacketCnt;
                    }
                }
                _BonusAmount = redPacket._DicRedBag[redPacket.RedBagId].MoneyNum;
                _DotText1.text = _BonusAmount.ToString();
                _CountText.text = _BonusAmount.ToString();
                if ((int)PlayerDatas.Instance.fairyData.fairy.MemberCount <= 10)
                if ((int)PlayerDatas.Instance.fairyData.fairy.MemberCount <= minRedpackCount)
                {
                    _NumberNumerical = 10;//仙盟红包至少10包
                    _NumberNumerical = minRedpackCount;//仙盟红包至少10包
                    _DotText2.text = _NumberNumerical.ToString();
                }
                else
                {
                    _NumberNumerical = 10;
                    _NumberNumerical = minRedpackCount;
                    _DotText2.text = _NumberNumerical.ToString();
                }
            }
@@ -359,7 +371,7 @@
            }
            else
            {
                if (_NumberNumerical <= 10)
                if (_NumberNumerical <= minRedpackCount)
                    return;
                _NumberNumerical -= 1;
                _DotText2.text = _NumberNumerical.ToString();