This commit is contained in:
aozhiwei 2024-08-16 10:24:25 +08:00
parent 7827e332f7
commit f8bf1cd1a2
2 changed files with 20 additions and 1 deletions

View File

@ -12,6 +12,7 @@ class ConsumeProduct
public static function onGoldConsume($params){ public static function onGoldConsume($params){
myself()->_callServiceStatic('HashRateService', 'onSpendGold', $params); myself()->_callServiceStatic('HashRateService', 'onSpendGold', $params);
myself()->_callServiceStatic('ContributionService', 'onGoldConsume', $params);
} }
} }

View File

@ -0,0 +1,18 @@
<?php
namespace services;
class ContributionService extends BaseService {
private static $ignoreCa = array(
'BlockChain@mintGoldBullion',
);
public static function onGoldConsume($params) {
$ca = getReqVal('c', '') . '@' . getReqVal('a');
if (array_key_exists($ca, self::$ignoreCa)) {
return;
}
}
}