diff --git a/webapp/controller/BigwheelController.class.php b/webapp/controller/BigwheelController.class.php index 6a4a4e9d..b5b11565 100644 --- a/webapp/controller/BigwheelController.class.php +++ b/webapp/controller/BigwheelController.class.php @@ -337,13 +337,13 @@ class BigwheelController extends BaseAuthedController { myself()->_rspData(array( 'award' => $this->awardService->toDto(), - 'property_chg' => $this->propertyChgService->toDto(), + 'property_chg' => $this->propertyChgService->toDto(), 'info' => $info )); - myself()->_fireEvent('Bigwheel', 'onBuyOk', array( - 'grid_id' => $gridId, - 'buy_price' => $gridRef['buy_price'], - )); + myself()->_fireEvent('Bigwheel', 'onBuyOk', + $gridId, + $gridRef['buy_price'] + ); } private function getMidDataKey() diff --git a/webapp/events/Bigwheel.php b/webapp/events/Bigwheel.php index 3774777b..9296b16d 100644 --- a/webapp/events/Bigwheel.php +++ b/webapp/events/Bigwheel.php @@ -12,6 +12,10 @@ class Bigwheel public static function onBuyOk($gridId, $buyPrice) { + myself()->_addTgLog('Bigwheel.buyOk', array( + 'gridId' => $gridId, + 'buyPrice' => $buyPrice + )); } }