|
|
@ -19,19 +19,19 @@ class AppClient extends BaseClient |
|
|
|
* 应用ID |
|
|
|
* 应用ID |
|
|
|
* @var string |
|
|
|
* @var string |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private $appId; |
|
|
|
protected $appId; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 商户私钥值 |
|
|
|
* 商户私钥值 |
|
|
|
* @var string |
|
|
|
* @var string |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private $rsaPrivateKey; |
|
|
|
protected $rsaPrivateKey; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 支付宝公钥值 |
|
|
|
* 支付宝公钥值 |
|
|
|
* @var string |
|
|
|
* @var string |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private $alipayrsaPublicKey; |
|
|
|
protected $alipayrsaPublicKey; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 支付宝网关 |
|
|
|
* 支付宝网关 |
|
|
@ -49,7 +49,7 @@ class AppClient extends BaseClient |
|
|
|
* 签名类型 |
|
|
|
* 签名类型 |
|
|
|
* @var string |
|
|
|
* @var string |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private $signType = "RSA2"; |
|
|
|
protected $signType = "RSA2"; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 接口版本 |
|
|
|
* 接口版本 |
|
|
@ -158,7 +158,6 @@ class AppClient extends BaseClient |
|
|
|
$sysParams["encrypt_type"] = $this->encryptType; |
|
|
|
$sysParams["encrypt_type"] = $this->encryptType; |
|
|
|
$apiParams['biz_content'] = $this->encryptCode($apiParams['biz_content']); |
|
|
|
$apiParams['biz_content'] = $this->encryptCode($apiParams['biz_content']); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//签名 |
|
|
|
//签名 |
|
|
|
$sysParams["sign"] = $this->generateSign(array_merge($apiParams, $sysParams), $this->signType); |
|
|
|
$sysParams["sign"] = $this->generateSign(array_merge($apiParams, $sysParams), $this->signType); |
|
|
|
$requestUrl = $this->buildRequestUrl($sysParams); |
|
|
|
$requestUrl = $this->buildRequestUrl($sysParams); |
|
|
|