mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-25 02:53:56 +08:00
[测试]修改微信jsapi支付测试
This commit is contained in:
parent
1c471982da
commit
8213ecf353
@ -91,8 +91,8 @@ class Pay
|
|||||||
$option["timeStamp"] = (string)time();
|
$option["timeStamp"] = (string)time();
|
||||||
$option["nonceStr"] = Tools::createNoncestr();
|
$option["nonceStr"] = Tools::createNoncestr();
|
||||||
$option["package"] = "prepay_id={$prepay_id}";
|
$option["package"] = "prepay_id={$prepay_id}";
|
||||||
$option["signType"] = "HMAC-SHA256";
|
$option["signType"] = "MD5";
|
||||||
$option["paySign"] = $this->getPaySign($option, 'HMAC-SHA256');
|
$option["paySign"] = $this->getPaySign($option, 'MD5');
|
||||||
$option['timestamp'] = $option['timeStamp'];
|
$option['timestamp'] = $option['timeStamp'];
|
||||||
return $option;
|
return $option;
|
||||||
}
|
}
|
||||||
@ -294,7 +294,7 @@ class Pay
|
|||||||
* @return array
|
* @return array
|
||||||
* @throws InvalidResponseException
|
* @throws InvalidResponseException
|
||||||
*/
|
*/
|
||||||
public function callPostApi($url, array $data, $isCert = false, $signType = 'HMAC-SHA256', $needSignType = true)
|
public function callPostApi($url, array $data, $isCert = false, $signType = 'MD5', $needSignType = true)
|
||||||
{
|
{
|
||||||
$option = [];
|
$option = [];
|
||||||
if ($isCert) {
|
if ($isCert) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user