1
This commit is contained in:
parent
ccf0488b81
commit
9c8152c699
@ -97,7 +97,7 @@ class Hero(object):
|
||||
_common.ReqHead(),
|
||||
['hero_uniid', 0, '英雄唯一id'],
|
||||
['slot_id', 0, '槽id(0-1)'],
|
||||
['cost_item_id', 0, '支付方式'],
|
||||
['cost_hero_uniid', 0, '耗材英雄唯一id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
|
@ -127,6 +127,7 @@ class HeroController extends BaseAuthedController {
|
||||
{
|
||||
$costItemId = getReqVal('cost_item_id', 0);
|
||||
$heroUniId = getReqVal('hero_uniid', 0);
|
||||
$slotId = getReqVal('slot_id', 0);
|
||||
$heroDb = Hero::find($heroUniId);
|
||||
if (!$heroDb) {
|
||||
$this->_rspErr(1, 'hero does not exist');
|
||||
@ -194,7 +195,7 @@ class HeroController extends BaseAuthedController {
|
||||
return;
|
||||
}
|
||||
$this->_decItems($costItems);
|
||||
$this->_setV(TN_HERO_LEVEL_UP);
|
||||
$this->_setV(TN_HERO_LEVEL_UP, $slotId, $heroDb['idx']);
|
||||
}
|
||||
|
||||
public function upgradeQuality()
|
||||
|
Loading…
x
Reference in New Issue
Block a user