master
elf 2 years ago
parent d073456cc4
commit 076220f66f

@ -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';

@ -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'));
}
}
Loading…
Cancel
Save