From c473f84ca349b0f10bb26bb815165bc5f1478600 Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Fri, 5 May 2023 22:15:01 +0800 Subject: [PATCH] s --- Application/Callback/Controller/NotifyController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Callback/Controller/NotifyController.class.php b/Application/Callback/Controller/NotifyController.class.php index 008a9192..a335c277 100644 --- a/Application/Callback/Controller/NotifyController.class.php +++ b/Application/Callback/Controller/NotifyController.class.php @@ -987,7 +987,7 @@ class NotifyController extends BaseController public function qzl_callback() { $params = file_get_contents('php://input'); - $params = '{"amount":"1.00","payResult":"0","mchOrderNo":"SP_20230505215825yXDQ","errMsg":"","resultCode":0,"sign":"C3869E31F0EA3561C842F360DC084CCD","traceTime":"20230505215849","message":"0","mchNo":"68822023041910000101","status":0}'; + // $params = '{"amount":"1.00","payResult":"0","mchOrderNo":"SP_20230505215825yXDQ","errMsg":"","resultCode":0,"sign":"C3869E31F0EA3561C842F360DC084CCD","traceTime":"20230505215849","message":"0","mchNo":"68822023041910000101","status":0}'; QzlLog::write('NOTIFY_POST:' . json_encode($_POST)); QzlLog::write('NOTIFY_INPUT:' . file_get_contents('php://input')); @@ -1004,7 +1004,7 @@ class NotifyController extends BaseController echo 'RESULT_FAIL'; return; } - if (intval($response->getData('payResult'))!== 0) { + if ($response->getData('payResult') !== '0') { QzlLog::write('NOTIFY payResult fail: ' . $response->getData('payResult')); echo 'SUCCESS'; return;