diff --git a/webapp/events/ConsumeProduct.php b/webapp/events/ConsumeProduct.php index f08726b4..0de71770 100644 --- a/webapp/events/ConsumeProduct.php +++ b/webapp/events/ConsumeProduct.php @@ -12,6 +12,7 @@ class ConsumeProduct public static function onGoldConsume($params){ myself()->_callServiceStatic('HashRateService', 'onSpendGold', $params); + myself()->_callServiceStatic('ContributionService', 'onGoldConsume', $params); } -} \ No newline at end of file +} diff --git a/webapp/services/ContributionService.php b/webapp/services/ContributionService.php new file mode 100644 index 00000000..c289982d --- /dev/null +++ b/webapp/services/ContributionService.php @@ -0,0 +1,18 @@ +