From 8213ecf353b53569ee88e0a737491f80a8ec7c50 Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 3 May 2018 15:16:53 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=B5=8B=E8=AF=95]=E4=BF=AE=E6=94=B9=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1jsapi=E6=94=AF=E4=BB=98=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vendor/zoujingli/wechat-developer/WeChat/Pay.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vendor/zoujingli/wechat-developer/WeChat/Pay.php b/vendor/zoujingli/wechat-developer/WeChat/Pay.php index 44785f4cf..3ec56b73a 100644 --- a/vendor/zoujingli/wechat-developer/WeChat/Pay.php +++ b/vendor/zoujingli/wechat-developer/WeChat/Pay.php @@ -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) {