From 1d86115ca05bd6eaffc92167580feb745a11d3b8 Mon Sep 17 00:00:00 2001 From: Hankin Date: Mon, 27 Apr 2026 09:47:01 +0800 Subject: [PATCH] callback --- app/Http/Controllers/Server/H5/EarningController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Server/H5/EarningController.php b/app/Http/Controllers/Server/H5/EarningController.php index c7c2894..6596c48 100644 --- a/app/Http/Controllers/Server/H5/EarningController.php +++ b/app/Http/Controllers/Server/H5/EarningController.php @@ -722,7 +722,7 @@ class EarningController extends Controller DB::beginTransaction(); $withdraw = MEarningwithdraws::where("trade_no", $res["data"]["out_bill_no"])->first(); if ($withdraw->status != "wait_user_confirm") { - throw new Exception("订单已回调"); + return $this->failure("订单已回调"); } $earning_account = MEarningAccount::where("m_id", $withdraw->m_id)->where("m_user_id", $withdraw->m_user_id)->first(); //修改账号状态 if ($res["data"]["state"] == "SUCCESS") {