add clear
This commit is contained in:
+3
-1
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user