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