This commit is contained in:
aozhiwei 2022-06-15 10:41:58 +08:00
parent b840da9c7f
commit 5e4b07e486
2 changed files with 6 additions and 2 deletions

View File

@ -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(), '英雄-新'],
] ]

View File

@ -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,