作者 zhaozzwei

更新 YuyueController.php

@@ -95,7 +95,7 @@ class YuyueController extends UserBaseController @@ -95,7 +95,7 @@ class YuyueController extends UserBaseController
95 $rre = Db::name('commente') 95 $rre = Db::name('commente')
96 ->alias('c') 96 ->alias('c')
97 ->join('qnb_user u', 'u.id = c.uid') 97 ->join('qnb_user u', 'u.id = c.uid')
98 - ->where(['teach_id' => $id]) 98 + ->where(['teach_id' => $id,'comment'=>['neq','']])
99 ->field('c.*,u.user_nickname') 99 ->field('c.*,u.user_nickname')
100 ->select() 100 ->select()
101 ->toarray(); 101 ->toarray();
@@ -220,7 +220,7 @@ class YuyueController extends UserBaseController @@ -220,7 +220,7 @@ class YuyueController extends UserBaseController
220 $rre = Db::name('commente') 220 $rre = Db::name('commente')
221 ->alias('c') 221 ->alias('c')
222 ->join('qnb_user u', 'u.id = c.uid') 222 ->join('qnb_user u', 'u.id = c.uid')
223 - ->where(['teach_id' => $id]) 223 + ->where(['teach_id' => $id,'comment'=>['neq','']])
224 ->field('c.*,u.user_nickname') 224 ->field('c.*,u.user_nickname')
225 ->select() 225 ->select()
226 ->toarray(); 226 ->toarray();