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)) {