[更新]修正微信支付通知签名

This commit is contained in:
Anyon 2018-02-05 19:04:18 +08:00
parent d366343af4
commit f716e8e3cc

View File

@ -210,6 +210,7 @@ class Pay
*/ */
public function getPaySign(array $data) public function getPaySign(array $data)
{ {
unset($data['sign']);
ksort($data); ksort($data);
list($key, $str) = [$this->config->get('mch_key'), '']; list($key, $str) = [$this->config->get('mch_key'), ''];
foreach ($data as $k => $v) { foreach ($data as $k => $v) {