to: 增加支付回调错误日志记录

This commit is contained in:
xboard 2024-01-11 01:16:10 +08:00
parent 31b8930222
commit 3f65ad6ae6

View File

@ -21,8 +21,9 @@ class PaymentController extends Controller
if (!$this->handle($verify['trade_no'], $verify['callback_no'])) {
return $this->fail([400,'handle error']);
}
return(isset($verify['custom_result']) ? $verify['custom_result'] : 'success');
return (isset($verify['custom_result']) ? $verify['custom_result'] : 'success');
} catch (\Exception $e) {
\Log::error($e);
return $this->fail([500,'fail']);
}
}