From 204c19ff6d31c17ae62949509668059bad4eec9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Sat, 11 Oct 2025 14:53:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=A2=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/model/Redpacket.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/application/common/model/Redpacket.php b/application/common/model/Redpacket.php index ec36c83..c12b94d 100644 --- a/application/common/model/Redpacket.php +++ b/application/common/model/Redpacket.php @@ -45,7 +45,7 @@ class Redpacket extends Model public function createRedpacket($data) { Db::startTrans(); - try { +// try { // 验证用户余额 $wallet = Db::name('user_wallet')->where('user_id', $data['user_id'])->find(); @@ -121,11 +121,11 @@ class Redpacket extends Model // return $redpacketId; return V(1, '发红包成功', $redpacketId); - } catch (\Exception $e) { - Db::rollback(); - return V(0, $e); -// throw $e; - } +// } catch (\Exception $e) { +// Db::rollback(); +// return V(0, $e); +//// throw $e; +// } } /**