From f8bf1cd1a2fa261becae091fc48bea2a602e8d40 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 16 Aug 2024 10:24:25 +0800 Subject: [PATCH] 1 --- webapp/events/ConsumeProduct.php | 3 ++- webapp/services/ContributionService.php | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 webapp/services/ContributionService.php 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 @@ +