From a4c3cf97141a32aac2e0c8627b299e246e761a54 Mon Sep 17 00:00:00 2001 From: hujiabin Date: Tue, 20 Sep 2022 19:23:33 +0800 Subject: [PATCH] 1 --- webapp/controller/FragmentController.class.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/webapp/controller/FragmentController.class.php b/webapp/controller/FragmentController.class.php index e8f21d10..261e2ee6 100644 --- a/webapp/controller/FragmentController.class.php +++ b/webapp/controller/FragmentController.class.php @@ -353,10 +353,10 @@ class FragmentController extends BaseAuthedController 'hero_tili_max' => strval(round(FormulaService::Hero_NFT_Maximum_Physical_Strength(1,$heroLucky),3)), 'chip_strength_sum' =>0, ); - $hero['current_pvp_get_ceg'] = strval(FormulaService::getHeroPvpDailyCegUpLimit($hero)); - $hero['pvp_ceg_uplimit'] = strval(FormulaService::getHeroPvpDailyCegUpLimit($hero)); - $hero['current_pve_get_ceg'] = strval(FormulaService::getHeroPveDailyCegUpLimit($hero)); - $hero['pve_ceg_uplimit'] = strval(FormulaService::getHeroPveDailyCegUpLimit($hero)); + $hero['current_pvp_get_ceg'] = strval(round(FormulaService::getHeroPvpDailyCegUpLimit($hero),2)); + $hero['pvp_ceg_uplimit'] = strval(round(FormulaService::getHeroPvpDailyCegUpLimit($hero),2)); + $hero['current_pve_get_ceg'] = strval(round(FormulaService::getHeroPveDailyCegUpLimit($hero),2)); + $hero['pve_ceg_uplimit'] = strval(round(FormulaService::getHeroPveDailyCegUpLimit($hero),2)); $this->_rspData(array( 'data' => $hero )); @@ -373,10 +373,10 @@ class FragmentController extends BaseAuthedController 'durability_max' => strval(round(FormulaService::Weapon_NFT_Maximum_Durability(1,$gunLucky),3)), 'chip_strength_sum' =>0, ); - $gun['current_pvp_get_ceg'] = FormulaService::getWeaponPvpDailyCegUpLimit($gun); - $gun['pvp_ceg_uplimit'] = FormulaService::getWeaponPvpDailyCegUpLimit($gun); - $gun['current_pve_get_ceg'] = FormulaService::getWeaponPveDailyCegUpLimit($gun); - $gun['pve_ceg_uplimit'] = FormulaService::getWeaponPveDailyCegUpLimit($gun); + $gun['current_pvp_get_ceg'] = strval(round(FormulaService::getWeaponPvpDailyCegUpLimit($gun),2)) ; + $gun['pvp_ceg_uplimit'] = strval(round(FormulaService::getWeaponPvpDailyCegUpLimit($gun),2)) ; + $gun['current_pve_get_ceg'] = strval(round(FormulaService::getWeaponPveDailyCegUpLimit($gun),2)) ; + $gun['pve_ceg_uplimit'] = strval(round(FormulaService::getWeaponPveDailyCegUpLimit($gun),2)) ; $this->_rspData(array( 'data' => $gun ));