From 99b56360313540cf6429749046cc544b5f432013 Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 3 May 2018 15:05:47 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E6=94=AF=E4=BB=98=E6=B5=8B?= =?UTF-8?q?=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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/zoujingli/wechat-developer/WeChat/Pay.php b/vendor/zoujingli/wechat-developer/WeChat/Pay.php index efb320346..44785f4cf 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"] = "MD5"; - $option["paySign"] = $this->getPaySign($option, 'MD5'); + $option["signType"] = "HMAC-SHA256"; + $option["paySign"] = $this->getPaySign($option, 'HMAC-SHA256'); $option['timestamp'] = $option['timeStamp']; return $option; }