This commit is contained in:
aozhiwei 2024-08-07 13:25:21 +08:00
parent 116ce9962b
commit 668c2f54c4
2 changed files with 5 additions and 6 deletions

View File

@ -282,11 +282,11 @@ class BigwheelController extends BaseAuthedController {
}
myself()->_fireEvent('Bigwheel', 'onWinPrize',
array(
'grid' => $grid1,
'info' => $grid1,
'drop' => $drop1
),
array(
'grid' => $grid2,
'info' => $grid2,
'drop' => $drop2
));
}

View File

@ -13,10 +13,9 @@ class BigwheelService extends BaseService
{
$grids = array($grid1, $grid2);
foreach ($grids as $grid) {
$gridMeta = mt\Bigwheel::get($grid['grid_id']);
if ($grid['grid_state'] == 1 && $gridMeta['is_grand_reward']) {
self::sendNotify($drop1[0]['item_id']);
self::sendNotify($drop2[0]['item_id']);
$gridMeta = mt\Bigwheel::get($grid['info']['grid_id']);
if ($grid['info']['grid_state'] == 1 && $gridMeta['is_grand_reward']) {
self::sendNotify($grid['drop'][0]['item_id']);
}
}
}