admin/app/common/payment/setting/wechat/WechatMinSetting.php

29 lines
438 B
PHP

<?php
/**
* Created by PhpStorm.
*
*
*
* Date: 2021/8/26
* Time: 14:02
*/
namespace app\common\payment\setting\wechat;
use app\common\payment\setting\BasePaymentSetting;
class WechatMinSetting extends BasePaymentSetting
{
public function canUse()
{
return request()->input('type') == 2
&& \Setting::get('shop.pay.weixin')
&& \Setting::get('shop.pay.weixin_pay');
}
public function getWeight()
{
return 999;
}
}