1
This commit is contained in:
parent
5b8157a036
commit
4378c9f8ef
@ -280,7 +280,7 @@ class ChipController extends BaseAuthedController
|
||||
$num = round(round(($cumulative_cost/$upgrade_cost),5)*10000);
|
||||
if ($num<rand(1,10000)){
|
||||
//合成失败
|
||||
$this->_rspErr(1, 'The chip Upgrade failed');
|
||||
$this->_rspOk();
|
||||
return;
|
||||
}else{
|
||||
//合成成功
|
||||
@ -422,6 +422,11 @@ class ChipController extends BaseAuthedController
|
||||
$this->_rspOk();
|
||||
}
|
||||
|
||||
public function test(){
|
||||
$cost = \services\FormulaService::Chip_Need_Mint_Cost(6);
|
||||
print_r($cost);
|
||||
}
|
||||
|
||||
|
||||
private function _doInlayHero($hero_id,$token_id){
|
||||
$chip = Chip::getChipByTokenId($token_id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user