From 10d0801176dcc183e26a7507a8027bbb78dcbf3a Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Wed, 20 Mar 2024 11:14:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E5=AE=9D=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/payment/setting/other/HfTxSetting.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/common/payment/setting/other/HfTxSetting.php b/app/common/payment/setting/other/HfTxSetting.php index fc19f6c7..37a06edf 100644 --- a/app/common/payment/setting/other/HfTxSetting.php +++ b/app/common/payment/setting/other/HfTxSetting.php @@ -12,6 +12,11 @@ class HfTxSetting extends BasePaymentSetting { public function canUse() { + $code = $this->getCode(); + + if($code == 'A_NATIVE') return false;// 是否开启支付宝 + else if($code == 'T_JSAPI') return true;// 是否开启微信 + return true; } } \ No newline at end of file