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

删除圈子去除

... ... @@ -106,9 +106,7 @@ class AdminArticleController extends AdminBaseController
/*
添加圈子文章
*/
if (!empty($post['group'])) {
$portalPostModel->addPortalGroup($post['id'], $post['group']);
}
if (!empty($data['photo_names']) && !empty($data['photo_urls'])) {
$data['post']['more']['photos'] = [];
foreach ($data['photo_urls'] as $key => $url) {
... ... @@ -128,6 +126,9 @@ class AdminArticleController extends AdminBaseController
$portalPostModel->adminAddArticle($data['post'], $data['post']['categories']);
$data['post']['id'] = $portalPostModel->id;
if (!empty($post['group'])) {
$portalPostModel->addPortalGroup($data['id'], $post['group']);
}
$hookParam = [
'is_add' => true,
'article' => $data['post']
... ...