$_method
$_method : string
接口请求方法.
微信请求类基类.
__onExecute(\Yurun\PaySDK\Base $sdk, string $format) : boolean
当调用SDK的execute时触发,返回true时不执行SDK中默认的执行逻辑.
\Yurun\PaySDK\Base | $sdk | |
string | $format | 数据格式,json、xml等 |
<?php
namespace Yurun\PaySDK;
/**
* 微信请求类基类.
*/
abstract class WeixinRequestBase extends RequestBase
{
/**
* 接口名称.
*
* @var string
*/
public $_apiMethod = '';
/**
* 参数中是否需要带有app_id.
*
* @var bool
*/
public $needAppID = true;
/**
* 参数中是否需要带有mch_id.
*
* @var bool
*/
public $needMchID = true;
/**
* 参数中是否需要带有sign_type.
*
* @var bool
*/
public $needSignType = true;
/**
* 签名类型,为null时使用publicParams设置.
*
* @var string
*/
public $signType = null;
/**
* 参数中是否需要带有nonce_str
* 为true时,自动带上nonce_str
* 为false时,不带上nonce_str
* 为字符串时,使用该字符串作为nonce_str字段名.
*
* @var bool|string
*/
public $needNonceStr = true;
/**
* 是否允许上报.
*
* @var bool
*/
public $allowReport = true;
public function __construct()
{
$this->_isSyncVerify = true;
}
}