bztang-admin/app/common/payment/setting/other/SilverPointPayAlipaySetting...

26 lines
605 B
PHP

<?php
/**
* Created by PhpStorm.
*
*
*
* Date: 2022/6/30
* Time: 15:59
*/
namespace app\common\payment\setting\other;
use app\common\facades\Setting;
use app\common\payment\setting\BasePaymentSetting;
class SilverPointPayAlipaySetting extends BasePaymentSetting
{
public function canUse()
{
$type_list = [1, 5, 7];
return in_array(request()->input('type'), $type_list)
&& app('plugins')->isEnabled('silver-point-pay')
&& Setting::get('silver-point-pay.set.plugin_enable')
&& Setting::get('silver-point-pay.set.alipay_enable');
}
}