爆币
This commit is contained in:
@@ -100,10 +100,15 @@ class LotteryService
|
|||||||
$small_trigger_times, $big_threshold,
|
$small_trigger_times, $big_threshold,
|
||||||
$small_round, $big_round, $big_total_gold
|
$small_round, $big_round, $big_total_gold
|
||||||
], 0);
|
], 0);
|
||||||
|
// var_dump($result);die;
|
||||||
|
$result = json_decode($result, true);
|
||||||
|
if (json_last_error() !== JSON_ERROR_NONE) {
|
||||||
|
throw new Exception('Lua脚本执行失败');
|
||||||
|
}
|
||||||
|
|
||||||
// 开启数据库事务
|
// 开启数据库事务
|
||||||
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 +203,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());
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user