$method($where); $data['info'] = array(); $data['total'] = Dever::total(); if ($info) { foreach ($info as $k => $v) { $data['info'][$k]['uid'] = $v['uid']; $data['info'][$k]['content'] = $v['content']; } } return $data; } # 发表信息 public function submit($uid, $id, $type, $content) { $where['uid'] = $uid; $where['type_id'] = $id; $where['type'] = $type; $where['content'] = $content; $table = 'community/comment'; $info = false; if (!$info) { Dever::db($table)->insert($where); Dever::score($uid, 'submit_comment', '发布弹幕'); } return true; } }