From 23f43aa727c633a537d2421ab7c0bde19192df1b Mon Sep 17 00:00:00 2001 From: ZweiCD <416931358@qq.com> Date: Fri, 17 Jul 2020 11:34:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=BE=E5=90=8D=E9=AA=8C=E8=AF=81=EF=BC=88?= =?UTF-8?q?=E5=B8=A6=E5=A4=9A=E4=BD=99=E8=AF=B7=E6=B1=82=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/QimenWms.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/QimenWms.php b/src/QimenWms.php index 5ba935a..bc799d9 100644 --- a/src/QimenWms.php +++ b/src/QimenWms.php @@ -611,15 +611,8 @@ class QimenWms extends BaseWms implements WmsInterface if (empty($params)) { return false; } - $query = [ - 'method' => $params['method'], - 'timestamp' => $params['timestamp'], - 'format' => $params['format'], - 'app_key' => $params['app_key'], - 'v' => $params['v'], - 'sign_method' => $params['sign_method'], - 'customerId' => $params['customerId'], - ]; + $query = $params; + unset($query['body'], $query['sign']); $sign = $this->createSign($query, $params['body']); if (!hash_equals((string) $sign, (string) $params['sign'])) { return false;