no message
This commit is contained in:
parent
1cd0409e0e
commit
20c74f7f56
@ -52,7 +52,7 @@ class FileContent extends AbstractModel
|
|||||||
$content = Base::json2array($content);
|
$content = Base::json2array($content);
|
||||||
if (in_array($type, ['word', 'excel', 'ppt'])) {
|
if (in_array($type, ['word', 'excel', 'ppt'])) {
|
||||||
if (empty($content)) {
|
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']));
|
return Response::download(public_path($content['url']));
|
||||||
}
|
}
|
||||||
|
@ -238,7 +238,7 @@ class FilesTableSeeder extends Seeder
|
|||||||
'cid' => 0,
|
'cid' => 0,
|
||||||
'name' => '会议发言',
|
'name' => '会议发言',
|
||||||
'type' => 'word',
|
'type' => 'word',
|
||||||
'size' => 0,
|
'size' => 10994,
|
||||||
'userid' => 1,
|
'userid' => 1,
|
||||||
'share' => 1,
|
'share' => 1,
|
||||||
'created_id' => 1,
|
'created_id' => 1,
|
||||||
@ -253,7 +253,7 @@ class FilesTableSeeder extends Seeder
|
|||||||
'cid' => 0,
|
'cid' => 0,
|
||||||
'name' => '产品介绍',
|
'name' => '产品介绍',
|
||||||
'type' => 'ppt',
|
'type' => 'ppt',
|
||||||
'size' => 0,
|
'size' => 26882,
|
||||||
'userid' => 1,
|
'userid' => 1,
|
||||||
'share' => 1,
|
'share' => 1,
|
||||||
'created_id' => 1,
|
'created_id' => 1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user