1
This commit is contained in:
parent
84c951e2b8
commit
d9becafaaa
@ -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(
|
||||||
|
@ -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()
|
||||||
));
|
));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user