1
This commit is contained in:
parent
bfc1a57ea8
commit
fa0cd29c63
@ -706,7 +706,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){
|
||||
@ -719,6 +718,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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user