|
@@ -123,17 +123,23 @@ class Forum extends Controller
|
|
|
->leftJoin('store_member u','u.id = r.user_id')
|
|
|
->where($where)
|
|
|
->order('r.id desc')->page();
|
|
|
+
|
|
|
+ $this->assign('list',$list);
|
|
|
+ $this->fetch('');
|
|
|
+ }
|
|
|
+ protected function _reply_page_filter(&$data){
|
|
|
$app_name = sysconf('app_name');
|
|
|
$app_logo = sysconf('app_logo');
|
|
|
- foreach ($list as &$v) {
|
|
|
+ foreach ($data as &$v)
|
|
|
+ {
|
|
|
if(!$v['user_id']) $v['name'] = $app_name;
|
|
|
if(!$v['user_id']) $v['headimg'] = $app_logo;
|
|
|
}
|
|
|
- $this->assign('list',$list);
|
|
|
- $this->fetch('');
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
public function del_reply()
|
|
|
{
|
|
|
Db::name('forum_reply')->where('id',input('id'))->update(['is_deleted'=>1]);
|