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': [
_common.RspHead(),
['state', 0, '0:失败 1:成功'],
['old_hero', _common.Hero(), '英雄-老'],
['new_hero', _common.Hero(), '英雄-新'],
]

View File

@ -244,8 +244,10 @@ class HeroController extends BaseAuthedController {
)
);
$this->_rspRawData(array(
'errcode' => 1,
'errmsg' => 'advance failed',
'errcode' => 0,
'errmsg' => '',
'state' => 0,
//'errmsg' => 'advance failed',
'property_chg' => $propertyChgService->toDto(),
));
return;
@ -280,6 +282,7 @@ class HeroController extends BaseAuthedController {
return;
}
$this->_rspData(array(
'state' => 1,
'property_chg' => $propertyChgService->toDto(),
'old_hero' => $oldHero,
'new_hero' => $newHero,