From 86d1d7213f8592b76ba6ea67244305383e07c24b Mon Sep 17 00:00:00 2001 From: Hankin Date: Fri, 24 Apr 2026 17:07:11 +0800 Subject: [PATCH] transfer --- app/Http/Controllers/WechatPayController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Http/Controllers/WechatPayController.php b/app/Http/Controllers/WechatPayController.php index 1fa32f4..0e5ccf4 100644 --- a/app/Http/Controllers/WechatPayController.php +++ b/app/Http/Controllers/WechatPayController.php @@ -60,6 +60,9 @@ class WechatPayController extends Controller Log::info("请求头", ["headers" => $headers]); Log::info("请求体", ["body" => $body]); $res = WechatPayService::mchTransferCallback($headers, $body); + if (empty($res)) { + return $this->failure("回调失败"); + } Log::info("解密数据", ["data" => $res]); return $this->success("ok", $res); }