This commit is contained in:
hujiabin 2022-11-24 19:47:50 +08:00
parent 84c951e2b8
commit d9becafaaa
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ class HeroController extends BaseAuthedController {
$this->_rspErr(1, "Not enough hero skill points"); $this->_rspErr(1, "Not enough hero skill points");
return; return;
} }
Hero::upgradeSkill($heroUniId,$skillIdx,$skill['skill_point']); Hero::upgradeSkill($heroUniId,$skillIdx,$next_skill['skill_point']);
$propertyChgService = new services\PropertyChgService(); $propertyChgService = new services\PropertyChgService();
$propertyChgService->addHeroChg(); $propertyChgService->addHeroChg();
$this->_rspData(array( $this->_rspData(array(

View File

@ -407,7 +407,7 @@ class Hero extends BaseModel {
return "${fieldName} + 1"; return "${fieldName} + 1";
}, },
'skill_points' => function() use ($skill_points){ 'skill_points' => function() use ($skill_points){
return "GREATEST(0, skill_points - ${$skill_points})"; return "GREATEST(0, skill_points - ${skill_points})";
}, },
'modifytime' => myself()->_getNowTime() 'modifytime' => myself()->_getNowTime()
)); ));