1
This commit is contained in:
@@ -17,6 +17,7 @@ class Auto extends Controller {
|
||||
protected $article_obj = '';
|
||||
protected $article_reviewer_obj = '';
|
||||
protected $user_obj = '';
|
||||
protected $user_reviewer_info_obj = '';
|
||||
protected $rev_to_jour_obj = '';
|
||||
protected $reviewer_obj = '';
|
||||
protected $journal_obj = '';
|
||||
@@ -24,12 +25,14 @@ class Auto extends Controller {
|
||||
protected $article_msg_obj = '';
|
||||
protected $user_log_obj = '';
|
||||
protected $reviewer_info_obj = '';
|
||||
protected $user_cv_obj = '';
|
||||
|
||||
public function __construct(\think\Request $request = null) {
|
||||
parent::__construct($request);
|
||||
$this->article_obj = Db::name('article');
|
||||
$this->article_reviewer_obj = Db::name('article_reviewer');
|
||||
$this->user_obj = Db::name('user');
|
||||
$this->user_reviewer_info_obj = Db::name('user_reviewer_info');
|
||||
$this->login_auto_obj = Db::name('login_auto');
|
||||
$this->rev_to_jour_obj = Db::name('reviewer_to_journal');
|
||||
$this->journal_obj = Db::name('journal');
|
||||
@@ -37,6 +40,7 @@ class Auto extends Controller {
|
||||
$this->article_msg_obj = Db::name('article_msg');
|
||||
$this->user_log_obj = Db::name('user_log');
|
||||
$this->reviewer_info_obj = Db::name('user_reviewer_info');
|
||||
$this->user_cv_obj = Db::name('user_cv');
|
||||
}
|
||||
|
||||
public function phpinfo(){
|
||||
@@ -146,6 +150,34 @@ class Auto extends Controller {
|
||||
}
|
||||
|
||||
|
||||
// public function cvComit(){
|
||||
// $list = $this->user_reviewer_info_obj
|
||||
// ->field('t_user.user_id,t_user.ctime,t_user_reviewer_info.qualifications')
|
||||
// ->join("t_user","t_user.user_id = t_user_reviewer_info.reviewer_id",'left')
|
||||
// ->where('t_user_reviewer_info.qualifications','<>','')
|
||||
// ->select();
|
||||
// foreach($list as $v){
|
||||
// $check = $this->user_cv_obj->where('cv',$v['qualifications'])->find();
|
||||
// if(!$v['user_id']||$check){
|
||||
// continue;
|
||||
// }
|
||||
// $insert['user_id'] = $v['user_id'];
|
||||
// $insert['cv'] = $v['qualifications'];
|
||||
// $insert['ctime'] = $v['ctime'];
|
||||
// $this->user_cv_obj->insert($insert);
|
||||
// }
|
||||
// dump($list);
|
||||
// }
|
||||
|
||||
public function getUserqqqq(){
|
||||
$num = $this->request->post('num');
|
||||
$limit_start = ($num - 1) * 1000;
|
||||
$users = $this->user_obj->join("t_user_reviewer_info",'t_user_reviewer_info.reviewer_id = t_user.user_id','left')->limit($limit_start,1000)->select();
|
||||
$re['list'] = $users;
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
|
||||
public function qqqq(){
|
||||
$extension_obj = Db::name('exten');
|
||||
$data = $this->request->post();
|
||||
|
||||
Reference in New Issue
Block a user