1
This commit is contained in:
parent
b840da9c7f
commit
5e4b07e486
@ -145,6 +145,7 @@ class Hero(object):
|
|||||||
],
|
],
|
||||||
'response': [
|
'response': [
|
||||||
_common.RspHead(),
|
_common.RspHead(),
|
||||||
|
['state', 0, '0:失败 1:成功'],
|
||||||
['old_hero', _common.Hero(), '英雄-老'],
|
['old_hero', _common.Hero(), '英雄-老'],
|
||||||
['new_hero', _common.Hero(), '英雄-新'],
|
['new_hero', _common.Hero(), '英雄-新'],
|
||||||
]
|
]
|
||||||
|
@ -244,8 +244,10 @@ class HeroController extends BaseAuthedController {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
$this->_rspRawData(array(
|
$this->_rspRawData(array(
|
||||||
'errcode' => 1,
|
'errcode' => 0,
|
||||||
'errmsg' => 'advance failed',
|
'errmsg' => '',
|
||||||
|
'state' => 0,
|
||||||
|
//'errmsg' => 'advance failed',
|
||||||
'property_chg' => $propertyChgService->toDto(),
|
'property_chg' => $propertyChgService->toDto(),
|
||||||
));
|
));
|
||||||
return;
|
return;
|
||||||
@ -280,6 +282,7 @@ class HeroController extends BaseAuthedController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$this->_rspData(array(
|
$this->_rspData(array(
|
||||||
|
'state' => 1,
|
||||||
'property_chg' => $propertyChgService->toDto(),
|
'property_chg' => $propertyChgService->toDto(),
|
||||||
'old_hero' => $oldHero,
|
'old_hero' => $oldHero,
|
||||||
'new_hero' => $newHero,
|
'new_hero' => $newHero,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user