|
@@ -241,6 +241,7 @@ class NewsService implements NewsServiceInterface
|
|
|
try{
|
|
|
$data['cat_arr_id'] = isset($data['cat_arr_id'])?json_encode($data['cat_arr_id']):'';
|
|
|
$data['tag'] = isset($data['tag'])?json_encode($data['tag']):'';
|
|
|
+ $articleData['imgurl'] = isset($articleData['imgurl']) && $articleData['imgurl']?PublicData::saveImageUrl($articleData['imgurl']):'';
|
|
|
$articleData = $data;
|
|
|
unset($articleData['content']);
|
|
|
unset($articleData['status_name']);
|
|
@@ -249,6 +250,7 @@ class NewsService implements NewsServiceInterface
|
|
|
unset($articleData['pid_arr']);
|
|
|
unset($articleData['pid']);
|
|
|
$id = Article::where(['id'=>$data['id']])->update($articleData);
|
|
|
+ $data['content'] = PublicData::replaceContentImg($data['content']);
|
|
|
$articleDataContent = [
|
|
|
'content'=>$data['content']
|
|
|
];
|