This commit is contained in:
2025-12-21 17:12:37 +08:00
parent f318e54a3a
commit e2b55a4f28

View File

@@ -103,7 +103,7 @@ class LotteryService
// 开启数据库事务 // 开启数据库事务
Db::startTrans(); Db::startTrans();
try { // try {
// . 1记录小奖池累计流水未开奖时 // . 1记录小奖池累计流水未开奖时
if ($result['is_small_prize'] == 0) { if ($result['is_small_prize'] == 0) {
$this->addPoolFlow( $this->addPoolFlow(
@@ -198,10 +198,10 @@ class LotteryService
'msg' => '处理成功', 'msg' => '处理成功',
'data' => $result 'data' => $result
]; ];
} catch (Exception $e) { // } catch (Exception $e) {
Db::rollback(); // Db::rollback();
throw new Exception($e->getMessage()); // throw new Exception($e->getMessage());
} // }
} }
/** /**