rkljw 2 달 전
부모
커밋
b747fc5716
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      app/JsonRpc/NewsService.php

+ 2 - 0
app/JsonRpc/NewsService.php

@@ -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']
             ];