From 4378c9f8ef007dca8589913e00601f66616e8291 Mon Sep 17 00:00:00 2001 From: hujiabin Date: Wed, 24 Aug 2022 17:28:38 +0800 Subject: [PATCH] 1 --- webapp/controller/ChipController.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webapp/controller/ChipController.class.php b/webapp/controller/ChipController.class.php index c8ab9af4..351205df 100644 --- a/webapp/controller/ChipController.class.php +++ b/webapp/controller/ChipController.class.php @@ -280,7 +280,7 @@ class ChipController extends BaseAuthedController $num = round(round(($cumulative_cost/$upgrade_cost),5)*10000); if ($num_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);