|
...
|
...
|
@@ -3,6 +3,7 @@ |
|
|
|
namespace App\Http\Logic\Bside\News;
|
|
|
|
|
|
|
|
use App\Enums\Common\Code;
|
|
|
|
use App\Helper\Arr;
|
|
|
|
use App\Http\Logic\Bside\BaseLogic;
|
|
|
|
use App\Models\News\News;
|
|
|
|
use App\Models\News\NewsCategory;
|
|
...
|
...
|
@@ -185,9 +186,7 @@ class NewsLogic extends BaseLogic |
|
|
|
if(isset($param['image'])){
|
|
|
|
$param['image'] = str_replace_url($param['image'] ?? '');
|
|
|
|
}
|
|
|
|
if(isset($param['related_news_id'])){
|
|
|
|
$param['related_news_id'] = implode(',',$param['related_news_id']);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(isset($this->param['id'])){
|
|
|
|
$param['operator_id'] = $this->user['id'];
|
|
|
|
}else{
|
|
...
|
...
|
@@ -204,6 +203,9 @@ class NewsLogic extends BaseLogic |
|
|
|
$this->fail('发布时间需大于当天');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(isset($param['related_news_id'])){
|
|
|
|
$param['related_news_id'] = implode(',',$param['related_news_id']);
|
|
|
|
}
|
|
|
|
return $this->success($param);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|