This commit is contained in:
aozhiwei 2024-08-07 10:56:31 +08:00
parent 36a59e335f
commit 9924a0016f
2 changed files with 2 additions and 5 deletions

View File

@ -280,6 +280,7 @@ class BigwheelController extends BaseAuthedController {
)
));
}
myself()->_fireEvent('Bigwheel', 'onWinPrize', $grid1, $grid2, $drop1, $drop2);
$this->sendNotify($drop1[0]['item_id']);
$this->sendNotify($drop2[0]['item_id']);
}

View File

@ -5,12 +5,8 @@ namespace events;
class Bigwheel
{
public static function onWinBigPrize($data)
public static function onWinPrize($grid1, $grid2, $drop1, $drop2)
{
//触发(调用)对应对该事件感兴趣的模块
//myself()->_callServiceStatic('A', 'f1', $battleData);
//myself()->_callServiceStatic('B', 'f1', $battleData);
echo json_encode($data);
}
}