diff --git a/Application/Callback/Controller/NotifyController.class.php b/Application/Callback/Controller/NotifyController.class.php index 715662d4..ac2ff229 100644 --- a/Application/Callback/Controller/NotifyController.class.php +++ b/Application/Callback/Controller/NotifyController.class.php @@ -938,8 +938,6 @@ class NotifyController extends BaseController FFLog::write('NOTIFY_INPUT:' . json_encode($_POST)); FFLog::write('NOTIFY_INPUT:' . file_get_contents('php://input')); - $params = json_decode('{"requestId":"SP_20230220173450O0Cp","description":"","payId":"230220608569818945","fiscalDate":"20230220","payType":"27","bankCode":"alipay","totalPrice":"6.00","tradeAmount":"6.00","tradeFee":"0.05","status":"2","endTime":"2023-02-20 17:35:18","resultSignature":"02b003ffe38a52268ef682866b17e74b"}', true); - $notify = new FFNotify($params); if (!$notify->verify()) { echo 'SIGN_VERIFY_FAIL'; diff --git a/ThinkPHP/Library/Org/SumaPay/Notify.class.php b/ThinkPHP/Library/Org/SumaPay/Notify.class.php index 904bbf11..894586df 100644 --- a/ThinkPHP/Library/Org/SumaPay/Notify.class.php +++ b/ThinkPHP/Library/Org/SumaPay/Notify.class.php @@ -47,7 +47,6 @@ class Notify $resultSignature = $this->data['resultSignature'] ?: ''; $this->data[Sign::SIGN_KEY] = $resultSignature; unset($this->data['resultSignature']); - var_dump($this->data, $this->signFields); return Sign::verify($this->data, $this->signFields, Config::get('secretKey')); } } \ No newline at end of file