This commit is contained in:
wangjinlei
2022-11-04 13:30:16 +08:00
parent 6058d5d32f
commit 45532ef702
7 changed files with 102 additions and 112 deletions

View File

@@ -34,8 +34,6 @@ class Chief extends Controller {
protected $chief_msg_obj = '';
protected $article_to_board_obj = '';
protected $login_auto_obj = '';
protected $user_index_obj = '';
protected $user_email_index_obj = '';
public function __construct(\think\Request $request = null) {
parent::__construct($request);
@@ -61,8 +59,6 @@ class Chief extends Controller {
$this->article_to_board_obj = Db::name('article_to_board');
$this->chief_to_journal_obj = Db::name('chief_to_journal');
$this->login_auto_obj = Db::name('login_auto');
$this->user_index_obj = Db::name('user_index');
$this->user_email_index_obj = Db::name('user_email_index');
}
/**
@@ -862,12 +858,12 @@ class Chief extends Controller {
->where('t_board_to_journal.state',0)
->select();
foreach($boards as $k => $v){
$boards[$k]['indexs'] = $this->user_index_obj
->where('user_id',$v['user_id'])
->where('state',0)
->order('year')->select();
}
// foreach($boards as $k => $v){
// $boards[$k]['indexs'] = $this->user_index_obj
// ->where('user_id',$v['user_id'])
// ->where('state',0)
// ->order('year')->select();
// }
$re['boards']=$boards;
return jsonSuccess($re);