edit修改相关内容

This commit is contained in:
admin 2024-06-24 10:35:09 +08:00
parent 48c9040186
commit 5ba376b7aa

View File

@ -162,7 +162,12 @@ class GoodsController extends Controller
} }
$video = []; $video = [];
$i = 0; $i = 0;
$video[$i] = []; $video[$i] = [
'img' => '',
'video_url' => '',
'title' => '',
'type' => 1,
];
if(!empty($value['video_url_data'])){ if(!empty($value['video_url_data'])){
$json_de = json_decode($value['video_url_data'],true); $json_de = json_decode($value['video_url_data'],true);
if(!empty($json_de[0]['url'])){ if(!empty($json_de[0]['url'])){
@ -179,6 +184,7 @@ class GoodsController extends Controller
$i++; $i++;
$video[$i]['img'] = $video_banner_urls[$key1] ?? ''; $video[$i]['img'] = $video_banner_urls[$key1] ?? '';
$video[$i]['video_url'] = $value1 ?? ''; $video[$i]['video_url'] = $value1 ?? '';
$video[$i]['type'] = 2;
} }
$data['data'][$key]['video_arr'] = $video; $data['data'][$key]['video_arr'] = $video;
} }