This commit is contained in:
aozhiwei 2024-08-01 17:16:01 +08:00
parent aaa0003b64
commit 5f0266a434

View File

@ -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(