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