fix: 修复视频导出时图片及视频地址拼接错误
This commit is contained in:
@@ -229,8 +229,12 @@ class Video
|
|||||||
->bindAttr('category', ['category_name' => 'name'])
|
->bindAttr('category', ['category_name' => 'name'])
|
||||||
->hidden(['category_id', 'category'])
|
->hidden(['category_id', 'category'])
|
||||||
->each(function ($item) use($domain, $image_path, $video_path) {
|
->each(function ($item) use($domain, $image_path, $video_path) {
|
||||||
|
if (!empty($item->image)) {
|
||||||
$item->image = $domain . $image_path . '/' . $item->image;
|
$item->image = $domain . $image_path . '/' . $item->image;
|
||||||
|
}
|
||||||
|
if (!empty($item->video)) {
|
||||||
$item->video = $domain . $video_path . '/' . $item->video;
|
$item->video = $domain . $video_path . '/' . $item->video;
|
||||||
|
}
|
||||||
$item->recommend = $item->recommend == 1 ? '是' : '否';
|
$item->recommend = $item->recommend == 1 ? '是' : '否';
|
||||||
$item->status = $item->status == 1 ? '启用' : '禁用';
|
$item->status = $item->status == 1 ? '启用' : '禁用';
|
||||||
return $item;
|
return $item;
|
||||||
|
|||||||
Reference in New Issue
Block a user