作者 xiaohu thinkpad

评价问题重构

此 diff 太大无法显示。
... ... @@ -82,7 +82,7 @@ class CommentController extends UserBaseController
$kemu = Db::name('user')->where(['id'=>$yuyue_data['uid']])->value('kemu');
$yuyue_data['kemu'] = $kemu;
//获取标签
$rre = Db::name('commente')->where(['teach_id'=>$teach_id])->find();
$rre = Db::name('commente')->where(['yuyue_id'=>$id,'teach_id'=>$teach_id])->find();
$rree = Db::name('commente_tag')->where(['id'=>['in',$rre['comment_tag']]])->field('name')->select()->toArray();
$this->assign("yuyue",$yuyue_data);
... ...