30 lines
478 B
PHP
30 lines
478 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 WechatNativeSetting extends BasePaymentSetting
|
|
{
|
|
public function canUse()
|
|
{
|
|
return request()->input('type') == 5
|
|
&& request()->input('pc') == 1
|
|
&& \Setting::get('shop.pay.weixin')
|
|
&& \Setting::get('shop.pay.wechat_native');
|
|
}
|
|
|
|
public function getWeight()
|
|
{
|
|
return 999;
|
|
}
|
|
} |