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); }