From 9b7b63322dfc341723105b76adc608a33225fce6 Mon Sep 17 00:00:00 2001 From: lccsw <1127794702@qq.com> Date: Thu, 2 Dec 2021 11:47:16 +0800 Subject: [PATCH] edit-api-hidden-video --- api/controllers/wxapp/content/Subject.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/controllers/wxapp/content/Subject.php b/api/controllers/wxapp/content/Subject.php index cf518a60..35a0f6a0 100644 --- a/api/controllers/wxapp/content/Subject.php +++ b/api/controllers/wxapp/content/Subject.php @@ -219,6 +219,11 @@ class Subject extends Wxapp{ $where = array('app_id' => $this->app_id, 'status' => self::STATUS_NOR); + $publish = $this->app_config('publish'); + if($publish){ //审核过滤视频 + $where['type!='] = 1; + } + $lists = $rows = array(); $total = $this->subjects_model->count($where); if($total){