Browse Source

默认视频封面

master
wanghongjun 1 month ago
parent
commit
0947f7d847
  1. 5
      app/enterprise/model/PostsFile.php

5
app/enterprise/model/PostsFile.php

@ -27,12 +27,13 @@ class PostsFile extends Model
if ($fileValue['type'] == 2) {
$is_video = 1;
$videoFile = $fileValue;
} else {
$privacyFile = $fileValue;
}
$privacyFile = $fileValue;
}
if ($is_video) {
$newFiles = $videoFile;
$newFiles['privacy'] = $privacyFile['src'];
$newFiles['privacy'] = $privacyFile['src'] ?? '/static/common/img/video.png';
$files = [$newFiles];
}
return $files;

Loading…
Cancel
Save