This commit is contained in:
hujiabin 2022-10-13 19:46:59 +08:00
parent 16643661cd
commit 0db063af8a
4 changed files with 5 additions and 1 deletions

View File

@ -803,7 +803,7 @@ class Cost(object):
self.fields = [ self.fields = [
['CEG', '', '金币'], ['CEG', '', '金币'],
['CEC', '', '钻石'], ['CEC', '', '钻石'],
['success_rate', '', '成功率(进阶有,升级没有)'],
] ]
class Fragment(object): class Fragment(object):

View File

@ -9,6 +9,7 @@ require_once('mt/ChipAttr.php');
require_once('services/FormulaService.php'); require_once('services/FormulaService.php');
require_once('services/PropertyChgService.php'); require_once('services/PropertyChgService.php');
require_once('services/LogService.php'); require_once('services/LogService.php');
require_once('services/SeasonService.php');
@ -575,6 +576,7 @@ class ChipController extends BaseAuthedController
// $this->chipDetails(); // $this->chipDetails();
// $arr = [30900=>2,31000=>6,31100=>4]; // $arr = [30900=>2,31000=>6,31100=>4];
} }

View File

@ -449,6 +449,7 @@ class GunController extends BaseAuthedController {
$newGunDb['quality'] += 1; $newGunDb['quality'] += 1;
$cost['CEG'] = \services\FormulaService::Weapon_Advanced_CEG_Expend($newGunDb['quality']); $cost['CEG'] = \services\FormulaService::Weapon_Advanced_CEG_Expend($newGunDb['quality']);
$cost['CEC'] = \services\FormulaService::Weapon_Advanced_CEC_Expend($newGunDb['quality']); $cost['CEC'] = \services\FormulaService::Weapon_Advanced_CEC_Expend($newGunDb['quality']);
$cost['success_rate'] = \services\FormulaService::Weapon_Advanced_Probability($newGunDb['quality']);
$gunDto = Gun::toDto($gunDb); $gunDto = Gun::toDto($gunDb);
$newGunDto = Gun::toDto($newGunDb); $newGunDto = Gun::toDto($newGunDb);
$this->_rspData(array( $this->_rspData(array(

View File

@ -800,6 +800,7 @@ class HeroController extends BaseAuthedController {
$newHeroDb['quality'] += 1; $newHeroDb['quality'] += 1;
$cost['CEG'] = \services\FormulaService::Hero_Advanced_CEG_Expend($newHeroDb['quality']); $cost['CEG'] = \services\FormulaService::Hero_Advanced_CEG_Expend($newHeroDb['quality']);
$cost['CEC'] = \services\FormulaService::Hero_Advanced_CEC_Expend($newHeroDb['quality']); $cost['CEC'] = \services\FormulaService::Hero_Advanced_CEC_Expend($newHeroDb['quality']);
$cost['success_rate'] = \services\FormulaService::Hero_Advanced_Probability($newHeroDb['quality']);
$heroDto = Hero::toDto($heroDb); $heroDto = Hero::toDto($heroDb);
$newHeroDto = Hero::toDto($newHeroDb); $newHeroDto = Hero::toDto($newHeroDb);
$this->_rspData(array( $this->_rspData(array(