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