From c5b41769edd42a26a79559f585e9fd28ab214d89 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 14 Jun 2022 19:23:53 +0800 Subject: [PATCH] q --- webapp/controller/HeroController.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/controller/HeroController.class.php b/webapp/controller/HeroController.class.php index 136d5227..baffcff5 100644 --- a/webapp/controller/HeroController.class.php +++ b/webapp/controller/HeroController.class.php @@ -215,9 +215,9 @@ class HeroController extends BaseAuthedController { $this->_rspErr(1, 'hero does not exist'); return; } - $costHeroUniId = $this->_getV(TN_HERO_QUALITY_UP, (int)$idx * 100); + $costHeroUniId = $this->_getV(TN_HERO_QUALITY_UP, (int)$idx + 1000); $this->_setV(TN_HERO_QUALITY_UP, $idx, 0); - $this->_setV(TN_HERO_QUALITY_UP, (int)$idx * 100, 0); + $this->_setV(TN_HERO_QUALITY_UP, (int)$idx + 1000, 0); $propertyChgService = new services\PropertyChgService(); $propertyChgService->addHeroChg(); $propertyChgService->addBagChg(); @@ -523,7 +523,7 @@ class HeroController extends BaseAuthedController { ) ); $this->_setV(TN_HERO_QUALITY_UP, (int)$slotId, (int)$heroDb['idx']); - $this->_setV(TN_HERO_QUALITY_UP, (int)$slotId * 100, (int)$costHeroDb['idx']); + $this->_setV(TN_HERO_QUALITY_UP, (int)$slotId + 1000, (int)$costHeroDb['idx']); $propertyChgService = new services\PropertyChgService(); $propertyChgService->addHeroChg(); $propertyChgService->addBagChg();