elf 2 years ago
parent 17db68c52c
commit c473f84ca3

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

Loading…
Cancel
Save