1
This commit is contained in:
@@ -39,6 +39,7 @@ class Article extends Controller {
|
||||
protected $user_reviewer_recommend_obj = '';
|
||||
protected $email_log_obj = '';
|
||||
protected $email_template_obj = '';
|
||||
protected $production_article_obj = '';
|
||||
|
||||
public function __construct(\think\Request $request = null) {
|
||||
parent::__construct($request);
|
||||
@@ -68,6 +69,7 @@ class Article extends Controller {
|
||||
$this->user_reviewer_recommend_obj = Db::name('user_reviewer_recommend');
|
||||
$this->email_log_obj = Db::name('email_log');
|
||||
$this->email_template_obj = Db::name('email_template');
|
||||
$this->production_article_obj = Db::name('production_article');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -132,10 +134,37 @@ class Article extends Controller {
|
||||
->where('t_article_transfer.state', 2)
|
||||
->find();
|
||||
$res[$key]['transinfo'] = $transfer_info;
|
||||
|
||||
|
||||
//对于接受的文章查询后续状态
|
||||
$proof_state = 0;
|
||||
if($val['state']==5){
|
||||
proofState($val['article_id']);
|
||||
$p_info = $this->production_article_obj->where('article_id',$val['article_id'])->where('state',0)->find();
|
||||
if($p_info&&$p_info['proof_state']==1){
|
||||
$proof_state = 1;
|
||||
}
|
||||
}
|
||||
$res[$key]['proof'] = $proof_state;
|
||||
}
|
||||
|
||||
//返回数据
|
||||
return json(['total' => $count, 'data' => $res]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取proof的详情
|
||||
*/
|
||||
public function getProofDetail(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user