Compare commits
3 Commits
9c6e26ce05
...
b67959163b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b67959163b | ||
| ba04d6d220 | |||
| 457c06948c |
@@ -61,7 +61,7 @@ class Upload
|
||||
$name_rule = fn() => $filename_keep ? $this->filenameGenerator($file) : null;
|
||||
|
||||
// 处理图片
|
||||
$image_manager = ImageManager::imagick();
|
||||
$image_manager = ImageManager::gd();
|
||||
if ($filetype_to == 'original') {
|
||||
$filename = Filesystem::disk('image')->putFile($param['module'], $file, $name_rule());
|
||||
$image = $image_manager->read('.' . $storage . '/' . $filename);
|
||||
@@ -171,7 +171,6 @@ class Upload
|
||||
'filesha1' => $image_model->file_sha1
|
||||
]);
|
||||
} catch (\Throwable $th) {
|
||||
dump($th);exit;
|
||||
return error($th->getMessage());
|
||||
}
|
||||
|
||||
@@ -185,7 +184,7 @@ class Upload
|
||||
*/
|
||||
private function checkPath($path): string
|
||||
{
|
||||
$ok = false;
|
||||
$ok = true;
|
||||
$filename = basename($path);
|
||||
$dirname = dirname($path);
|
||||
if (!is_dir($dirname)) {
|
||||
|
||||
@@ -23,9 +23,9 @@ class ArticleValidate extends Validate
|
||||
'sort' => 'integer',
|
||||
'recommend' => 'require|in:0,1',
|
||||
'release_time' => 'dateFormat:Y-m-d H:i:s',
|
||||
'seo_title' => 'max:255',
|
||||
'seo_keywords' => 'max:255',
|
||||
'seo_desc' => 'max:255'
|
||||
'seo_title' => 'max:512',
|
||||
'seo_keywords' => 'max:512',
|
||||
'seo_desc' => 'max:1024'
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -48,8 +48,8 @@ class ArticleValidate extends Validate
|
||||
'recommend.require' => '推荐状态不能为空',
|
||||
'recommend.in' => '推荐状态的值必须是0或1',
|
||||
'release_time.dateFormat' => '发布时间格式不正确',
|
||||
'seo_title.max' => 'SEO标题长度不能超过255个字符',
|
||||
'seo_keywords.max' => 'SEO关键字长度不能超过255个字符',
|
||||
'seo_desc.max' => 'SEO描述长度不能超过255个字符'
|
||||
'seo_title.max' => 'SEO标题长度不能超过512个字符',
|
||||
'seo_keywords.max' => 'SEO关键字长度不能超过512个字符',
|
||||
'seo_desc.max' => 'SEO描述长度不能超过1024个字符'
|
||||
];
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
<div class="ftcopyright">
|
||||
<span>{$basic_config.website_powerby.value}</span>
|
||||
{if condition="!empty($basic_config.website_icp)"}
|
||||
<a href="https://beian.miit.gov.cn/">({$basic_config.website_icp.value})</a>
|
||||
<a href="https://beian.miit.gov.cn/">{$basic_config.website_icp.value|raw}</a>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user