正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
@@ -75,10 +75,12 @@ class CommentController extends UserBaseController | @@ -75,10 +75,12 @@ class CommentController extends UserBaseController | ||
75 | $yuyue_data = Db::name('yuyue') | 75 | $yuyue_data = Db::name('yuyue') |
76 | ->alias('yy') | 76 | ->alias('yy') |
77 | ->join('qnb_user qu','qu.id = yy .teach_id') | 77 | ->join('qnb_user qu','qu.id = yy .teach_id') |
78 | - ->field('yy.*,qu.user_nickname,qu.headimgurl,qu.kemu') | 78 | + ->field('yy.*,qu.user_nickname,qu.headimgurl') |
79 | ->where(['yy.id'=>$id]) | 79 | ->where(['yy.id'=>$id]) |
80 | ->find(); | 80 | ->find(); |
81 | $teach_id = $yuyue_data['teach_id']; | 81 | $teach_id = $yuyue_data['teach_id']; |
82 | + $kemu = Db::name('user')->where(['id'=>$yuyue_data['uid']])->value('kemu'); | ||
83 | + $yuyue_data['kemu'] = $kemu; | ||
82 | //获取标签 | 84 | //获取标签 |
83 | $rre = Db::name('commente')->where(['teach_id'=>$teach_id])->find(); | 85 | $rre = Db::name('commente')->where(['teach_id'=>$teach_id])->find(); |
84 | $rree = Db::name('commente_tag')->where(['id'=>['in',$rre['comment_tag']]])->field('name')->select()->toArray(); | 86 | $rree = Db::name('commente_tag')->where(['id'=>['in',$rre['comment_tag']]])->field('name')->select()->toArray(); |
-
请 注册 或 登录 后发表评论