hch
2026-04-28 24e7aad4b1ebc17deadb40f3052fbf1ed4af235a
0312 群英跨服优化
4个文件已修改
33 ■■■■■ 已修改文件
Main/System/BillboardRank/RankModel.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Qunying/QYFighterCell.cs 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Qunying/QYWin.cs 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Qunying/QunyingManager.cs 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/BillboardRank/RankModel.cs
@@ -117,7 +117,7 @@
        var pak = new CA130_tagCMViewBillboard();
        pak.Type = (byte)type;
        pak.GroupValue1 = (byte)groupValue1;
        pak.GroupValue1 = (uint)groupValue1;
        pak.GroupValue2 = (uint)groupValue2;
        pak.StartIndex = (ushort)startIndex;  //排名从0开始
        pak.ViewCnt = (byte)count;
Main/System/Qunying/QYFighterCell.cs
@@ -30,6 +30,12 @@
        {
            if (matchInfo == null)
                return;
            if (QunyingManager.Instance.IsCrossGrouping())
            {
                SysNotifyMgr.Instance.ShowTip("QYCrossFightError");
                return;
            }
            if (!UIHelper.CheckMoneyCount(QunyingManager.challengeMoneyType, 1, 1))
            {
                StoreModel.Instance.ShowBuyItem(QunyingManager.challengeShopID, -1);
@@ -50,6 +56,12 @@
        {
            if (matchInfo == null)
                return;
            if (QunyingManager.Instance.IsCrossGrouping())
            {
                SysNotifyMgr.Instance.ShowTip("QYCrossFightError");
                return;
            }
            if (!UIHelper.CheckMoneyCount(QunyingManager.challengeMoneyType, 1, 1))
            {
                StoreModel.Instance.ShowBuyItem(QunyingManager.challengeShopID, -1);
@@ -64,6 +76,11 @@
            if (matchInfo == null)
                return;
            if (QunyingManager.Instance.IsCrossGrouping())
            {
                SysNotifyMgr.Instance.ShowTip("QYCrossFightError");
                return;
            }
            //最低显示两次,但可以最低挑战1次
            var cnt = Math.Max(1, Math.Min(5, UIHelper.GetMoneyCnt(QunyingManager.challengeMoneyType)));
            if (!UIHelper.CheckMoneyCount(QunyingManager.challengeMoneyType, cnt, 1))
Main/System/Qunying/QYWin.cs
@@ -171,8 +171,7 @@
    //活动时间
    void ShowGameTime()
    {
        var zoneInfo = CrossServerBaseManager.Instance.GetCrossZoneInfo(QunyingManager.DataMapID);
        if (zoneInfo != null && zoneInfo.ZoneID == 0)
        if (QunyingManager.Instance.IsCrossGrouping())
        {
            //倒计时按0:05结束
            var seconds = (TimeUtility.GetTodayStartTime().AddMinutes(5) - TimeUtility.GetCommServerNow(0)).TotalSeconds;
Main/System/Qunying/QunyingManager.cs
@@ -379,6 +379,17 @@
        return true;
    }
    public bool IsCrossGrouping()
    {
        var zoneInfo = CrossServerBaseManager.Instance.GetCrossZoneInfo(DataMapID);
        if (zoneInfo != null && zoneInfo.ZoneID == 0)
        {
            return true;
        }
        return false;
    }
    #region 红点
    public Redpoint parentRedpoint = new Redpoint(MainRedDot.Qunying);