diff --git a/plugin/think-plugs-wechat/src/service/PaymentService.php b/plugin/think-plugs-wechat/src/service/PaymentService.php index 2fbdf4e56..c464e9d4e 100644 --- a/plugin/think-plugs-wechat/src/service/PaymentService.php +++ b/plugin/think-plugs-wechat/src/service/PaymentService.php @@ -181,6 +181,7 @@ class PaymentService } return response('success'); } catch (\Exception $exception) { + empty($data['code']) || self::query($data['code']); return json(['code' => 'FAIL', 'message' => $exception->getMessage()])->code(500); } }