hch
2025-08-05 6d9a990ce3eff793946d7b43e9b48e4f7045c20e
Main/System/KnapSack/New/CommonItemBaisc.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.UI;
@@ -217,21 +218,11 @@
        itemIcon.SetOrgSprite(config.IconKey);
        ItemConfig itemConfig = ItemConfig.Get(itemId);
        bgIcon.SetItemBackGround(ItemLogicUtility.Instance.GetItemQuality(itemId, useDataDic));
        if (packModel.textCountShow.ContainsKey(itemId))
        {
            countText.SetActive(true);
            countText.text = count > 0 ? packModel.textCountShow[itemId] + "x" + count : packModel.textCountShow[itemId];
        }
        else if (packModel.gameCashShow.Contains(itemId))
        if (packModel.gameCashShow.Contains(itemId))
        {
            //代金券
            countText.SetActive(true);
            countText.text = count > 1000000 ? UIHelper.ReplaceLargeNum(count / 100.0f) : (count / 100.0f).ToString("0.#");
        }
        else if (Array.IndexOf(packModel.textCountShow2, itemId) != -1)
        {
            countText.SetActive(true);
            countText.text = UIHelper.ReplaceLargeNum(count * (ulong)config.EffectValueA1);
        }
        else
        {