Merge branch 'hjb' of git.kingsome.cn:server/game2006api into hjb

This commit is contained in:
hujiabin 2024-04-22 21:25:08 +08:00
commit f9dcec7c49

View File

@ -709,7 +709,6 @@ class BattleController extends BaseAuthedController {
$info['weapon_uuid1'] = $userPresetInfo['presetInfo']['weapon_uid1'];
$info['weapon_uuid2'] = $userPresetInfo['presetInfo']['weapon_uid2'];
$chipPageDb = ChipPage::find($userPresetInfo['hero_uniId']);
$info['chip_page'] = ChipPage::toDtoBattle($chipPageDb);
$info['honor_info'] = $userPresetInfo['honor_info'];
$battleDb = Battle::find($accountId);
if ($battleDb){
@ -722,6 +721,7 @@ class BattleController extends BaseAuthedController {
if ($heroDb) {
$info['is_valid_battle'] = 1;
$info['hero_dto'] = Hero::toDto($heroDb);
$info['hero_dto']['chip_page'] = ChipPage::toDtoBattle($chipPageDb);
} else {
$info['errcode'] = 51;
$info['errmsg'] = 'paramater error';