Merge branch 'hjb' of git.kingsome.cn:server/game2006api into hjb
This commit is contained in:
commit
0feb9f6f90
@ -12,6 +12,7 @@ class ConsumeProduct
|
||||
|
||||
public static function onGoldConsume($params){
|
||||
myself()->_callServiceStatic('HashRateService', 'onSpendGold', $params);
|
||||
myself()->_callServiceStatic('ContributionService', 'onGoldConsume', $params);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
18
webapp/services/ContributionService.php
Normal file
18
webapp/services/ContributionService.php
Normal 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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user