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