From aeb7a8c4b5709bd6ddb8ddf536f57385b9492b3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 10 Aug 2020 11:19:52 +0800 Subject: [PATCH] add clear --- wchat/qq/Notify.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wchat/qq/Notify.php b/wchat/qq/Notify.php index 1b49700..2bfa1f8 100644 --- a/wchat/qq/Notify.php +++ b/wchat/qq/Notify.php @@ -3,6 +3,7 @@ namespace wchat\qq; +use Exception; use wchat\common\Help; /** @@ -41,11 +42,12 @@ class Notify extends SmallProgram /** * @param array $params * @return $this + * @throws Exception */ public function setPayNotifyData(array $params) { if (!$this->validation($params)) { - unset($params['result_code'], $params['err_code_des']); + throw new Exception('签名错误!'); } foreach ($params as $key => $val) { if (!property_exists($this, $key)) {