diff --git a/webapp/controller/BigwheelController.class.php b/webapp/controller/BigwheelController.class.php index f2571f0e..4914714e 100644 --- a/webapp/controller/BigwheelController.class.php +++ b/webapp/controller/BigwheelController.class.php @@ -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']); } diff --git a/webapp/events/Bigwheel.php b/webapp/events/Bigwheel.php index be0cb50f..472da36c 100644 --- a/webapp/events/Bigwheel.php +++ b/webapp/events/Bigwheel.php @@ -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); } }