1
This commit is contained in:
parent
02077e884a
commit
ab44c2fc0a
@ -169,15 +169,21 @@ class HeroController extends BaseAuthedController {
|
|||||||
$propertyChgService->addHeroChg();
|
$propertyChgService->addHeroChg();
|
||||||
$propertyChgService->addBagChg();
|
$propertyChgService->addBagChg();
|
||||||
$propertyChgService->addUserChg();
|
$propertyChgService->addUserChg();
|
||||||
Hero::update($heroUniId,
|
$currLevelMeta = mt\HeroLevel::getByQualityLevel($heroDb['quality'], $heroDb['hero_lv']);
|
||||||
array(
|
if ($currLevelMeta) {
|
||||||
'hero_lv' => $heroDb['hero_lv'] + 1,
|
$nextLevelMeta = mt\HeroLevel::getByQualityLevel($heroDb['quality'], $heroDb['hero_lv'] + 1);
|
||||||
'lock_type' => 0,
|
if ($nextLevelMeta) {
|
||||||
'unlock_time' => 0,
|
Hero::update($heroUniId,
|
||||||
)
|
array(
|
||||||
);
|
'hero_lv' => $heroDb['hero_lv'] + 1,
|
||||||
$rankActivityService = new services\RankActivityService();
|
'lock_type' => 0,
|
||||||
$rankActivityService->heroUpgradeLevel($heroDb['hero_lv'] + 1);
|
'unlock_time' => 0,
|
||||||
|
)
|
||||||
|
);
|
||||||
|
$rankActivityService = new services\RankActivityService();
|
||||||
|
$rankActivityService->heroUpgradeLevel($heroDb['hero_lv'] + 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
$this->_rspData(array(
|
$this->_rspData(array(
|
||||||
'property_chg' => $propertyChgService->toDto(),
|
'property_chg' => $propertyChgService->toDto(),
|
||||||
));
|
));
|
||||||
@ -204,15 +210,21 @@ class HeroController extends BaseAuthedController {
|
|||||||
$propertyChgService->addHeroChg();
|
$propertyChgService->addHeroChg();
|
||||||
$propertyChgService->addBagChg();
|
$propertyChgService->addBagChg();
|
||||||
$propertyChgService->addUserChg();
|
$propertyChgService->addUserChg();
|
||||||
Hero::update($heroUniId,
|
$currQualityMeta = mt\HeroQuality::getByQuality($heroDb['quality']);
|
||||||
array(
|
if ($currQualityMeta) {
|
||||||
'quality' => $heroDb['quality'] + 1,
|
$nextQualityMeta = mt\HeroQuality::getByQuality($heroDb['quality'] + 1);
|
||||||
'lock_type' => 0,
|
if ($nextQualityMeta) {
|
||||||
'unlock_time' => 0,
|
Hero::update($heroUniId,
|
||||||
)
|
array(
|
||||||
);
|
'quality' => $heroDb['quality'] + 1,
|
||||||
$rankActivityService = new services\RankActivityService();
|
'lock_type' => 0,
|
||||||
$rankActivityService->heroUpgradeLevel($heroDb['quality'] + 1);
|
'unlock_time' => 0,
|
||||||
|
)
|
||||||
|
);
|
||||||
|
$rankActivityService = new services\RankActivityService();
|
||||||
|
$rankActivityService->heroUpgradeLevel($heroDb['quality'] + 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
$this->_rspData(array(
|
$this->_rspData(array(
|
||||||
'property_chg' => $propertyChgService->toDto(),
|
'property_chg' => $propertyChgService->toDto(),
|
||||||
));
|
));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user