作者 sgj
1 个管道 的构建 通过 耗费 1 秒

删除圈子去除

@@ -106,9 +106,7 @@ class AdminArticleController extends AdminBaseController @@ -106,9 +106,7 @@ class AdminArticleController extends AdminBaseController
106 /* 106 /*
107 添加圈子文章 107 添加圈子文章
108 */ 108 */
109 - if (!empty($post['group'])) {  
110 - $portalPostModel->addPortalGroup($post['id'], $post['group']);  
111 - } 109 +
112 if (!empty($data['photo_names']) && !empty($data['photo_urls'])) { 110 if (!empty($data['photo_names']) && !empty($data['photo_urls'])) {
113 $data['post']['more']['photos'] = []; 111 $data['post']['more']['photos'] = [];
114 foreach ($data['photo_urls'] as $key => $url) { 112 foreach ($data['photo_urls'] as $key => $url) {
@@ -128,6 +126,9 @@ class AdminArticleController extends AdminBaseController @@ -128,6 +126,9 @@ class AdminArticleController extends AdminBaseController
128 $portalPostModel->adminAddArticle($data['post'], $data['post']['categories']); 126 $portalPostModel->adminAddArticle($data['post'], $data['post']['categories']);
129 127
130 $data['post']['id'] = $portalPostModel->id; 128 $data['post']['id'] = $portalPostModel->id;
  129 + if (!empty($post['group'])) {
  130 + $portalPostModel->addPortalGroup($data['id'], $post['group']);
  131 + }
131 $hookParam = [ 132 $hookParam = [
132 'is_add' => true, 133 'is_add' => true,
133 'article' => $data['post'] 134 'article' => $data['post']