From c661018a1eb89feb6e45279c99a630497b910a93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Sun, 21 Dec 2025 16:58:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=88=86=E5=B8=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/Lottery.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/application/api/model/Lottery.php b/application/api/model/Lottery.php index 76582bda..5c5736a4 100644 --- a/application/api/model/Lottery.php +++ b/application/api/model/Lottery.php @@ -34,7 +34,7 @@ class Lottery extends Model } $nums = $num * count($toarray); -// $this->lottery($send_uid,$gift_info['gift_price'],$nums,$room_id,$gift_id); + $this->lottery($send_uid,$gift_info['gift_price'],$nums,$room_id,$gift_id); //送礼 开启事务 Db::startTrans(); @@ -125,7 +125,7 @@ class Lottery extends Model //抽奖 public function lottery($send_uid,$gift_price,$num,$room_id,$giftId) { - try { +// try { for($i=0;$i<$num;$i++){ $gift_gold = $gift_price; $service = new LotteryService(); @@ -151,10 +151,10 @@ class Lottery extends Model } } return V(1, '送礼成功'); - } catch (Exception $e) { - Log::error('抽奖处理失败:' . $e->getMessage()); - return V(0, $e->getMessage()); - } +// } catch (Exception $e) { +// Log::error('抽奖处理失败:' . $e->getMessage()); +// return V(0, $e->getMessage()); +// } } } \ No newline at end of file