fix: pc/mobile banner的extra_image取值
This commit is contained in:
@@ -45,14 +45,7 @@ class ContactUs extends Common
|
||||
$banner_map[$v->unique_label] = $v;
|
||||
}
|
||||
$focus_image = data_get($banner_map, 'BANNER_6805e3d32dcc2')?->items->first()?->toArray();
|
||||
$info_datas = data_get($banner_map, 'BANNER_6806090c1838f')?->items->each(function($item) {
|
||||
if (Str::contains($item->title, '<br/>')) {
|
||||
$title = explode('<br/>', $item->title);
|
||||
$item->title = $title[0];
|
||||
$item->title_short = $title[1];
|
||||
}
|
||||
return $item;
|
||||
})->toArray();
|
||||
$info_datas = data_get($banner_map, 'BANNER_6806090c1838f')?->items->toArray();
|
||||
}
|
||||
View::assign('focus_image', $focus_image);
|
||||
View::assign('info_datas', $info_datas);
|
||||
|
||||
Reference in New Issue
Block a user