From 5f0266a4347d9b3c7de7457a829d51df20b1ebb1 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 1 Aug 2024 17:16:01 +0800 Subject: [PATCH] 1 --- webapp/controller/BigwheelController.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/controller/BigwheelController.class.php b/webapp/controller/BigwheelController.class.php index 836ae737..2bf6adce 100644 --- a/webapp/controller/BigwheelController.class.php +++ b/webapp/controller/BigwheelController.class.php @@ -176,7 +176,7 @@ class BigwheelController extends BaseAuthedController { ++$data['drawed_times']; $grid1 = array( 'grid_id' => $item1['meta']['id'], - 'grid_state' => 2, + 'grid_state' => 1, 'item_id' => $drop1[0]['item_id'], 'item_num' => $drop1[0]['item_num'], 'buy_price' => 0, @@ -184,7 +184,7 @@ class BigwheelController extends BaseAuthedController { ); $grid2 = array( 'grid_id' => $item2['meta']['id'], - 'grid_state' => 2, + 'grid_state' => 1, 'item_id' => $drop2[0]['item_id'], 'item_num' => $drop2[0]['item_num'], 'buy_price' => 0, @@ -296,7 +296,7 @@ class BigwheelController extends BaseAuthedController { if ($drawedTimes < 0) { return null; } - if ($drawedTimes > self::MAX_DRAW_TIMES) { + if ($drawedTimes >= self::MAX_DRAW_TIMES) { $drawedTimes = self::MAX_DRAW_TIMES - 1; } $priceInfo = array(