no message

This commit is contained in:
aipaw 2021-07-13 08:01:22 +08:00
parent 1cd0409e0e
commit 20c74f7f56
5 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ class FileContent extends AbstractModel
$content = Base::json2array($content);
if (in_array($type, ['word', 'excel', 'ppt'])) {
if (empty($content)) {
return Response::download(resource_path('assets/statics/empty/empty.' . str_replace(['word', 'excel', 'ppt'], ['docx', 'xlsx', 'pptx'], $type)));
return Response::download(resource_path('assets/statics/office/empty.' . str_replace(['word', 'excel', 'ppt'], ['docx', 'xlsx', 'pptx'], $type)));
}
return Response::download(public_path($content['url']));
}

View File

@ -238,7 +238,7 @@ class FilesTableSeeder extends Seeder
'cid' => 0,
'name' => '会议发言',
'type' => 'word',
'size' => 0,
'size' => 10994,
'userid' => 1,
'share' => 1,
'created_id' => 1,
@ -253,7 +253,7 @@ class FilesTableSeeder extends Seeder
'cid' => 0,
'name' => '产品介绍',
'type' => 'ppt',
'size' => 0,
'size' => 26882,
'userid' => 1,
'share' => 1,
'created_id' => 1,