From 4435dad5cb74b7d68f57d4b62f04d3e3de4adbd9 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期四, 28 五月 2026 16:28:31 +0800
Subject: [PATCH] 666 新增代金券 可根据不同渠道配置只显示哪个
---
Main/SDK/SDKUtils.cs | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Main/SDK/SDKUtils.cs b/Main/SDK/SDKUtils.cs
index 62ff119..6f8e957 100644
--- a/Main/SDK/SDKUtils.cs
+++ b/Main/SDK/SDKUtils.cs
@@ -958,8 +958,9 @@
long cashVoucher = UIHelper.GetMoneyCnt(97);
long diamond = UIHelper.GetMoneyCnt(99);
- bool hasEnoughVoucher = cashVoucher >= needMoney;
- bool hasEnoughDiamond = diamond >= needMoney;
+ var availableMoneyTypes = GeneralDefine.GetPayMethodAvailableMoneyTypes();
+ bool hasEnoughVoucher = availableMoneyTypes.Contains(97) && cashVoucher >= needMoney;
+ bool hasEnoughDiamond = availableMoneyTypes.Contains(99) && diamond >= needMoney;
if (hasEnoughVoucher || hasEnoughDiamond)
{
--
Gitblit v1.8.0