|
|
@@ -194,7 +194,7 @@ class ArticleService extends BaseService
|
|
|
$data = request()->all();
|
|
|
|
|
|
// 图片处理
|
|
|
- $image = trim($data['thumb']);
|
|
|
+ $image = $data['thumb']? trim($data['thumb']) : '';
|
|
|
$id = isset($data['id']) ? $data['id'] : 0;
|
|
|
if (!$id && !$image) {
|
|
|
return message('请上传文章图片', false);
|