This commit is contained in:
wangjinlei
2023-07-24 09:35:35 +08:00
parent b1a23ce87a
commit 0b706eca4c
4 changed files with 84 additions and 3 deletions

View File

@@ -69,6 +69,7 @@ class Base extends Controller
protected $apply_reviewer_obj = '';
protected $promotion_obj = '';
protected $promotion_email_obj = '';
protected $article_reviewer_repeat_obj = '';
public function __construct(\think\Request $request = null)
@@ -135,6 +136,7 @@ class Base extends Controller
$this->apply_reviewer_obj = Db::name("apply_reviewer");
$this->promotion_obj = Db::name("promotion");
$this->promotion_email_obj = Db::name("promotion_email");
$this->article_reviewer_repeat_obj = Db::name("article_reviewer_repeat");
}
@@ -201,6 +203,16 @@ class Base extends Controller
return $frag;
}
public function delOneRefer($p_refer_id){
$refer_info = $this->production_article_refer_obj->where('p_refer_id', $p_refer_id)->find();
if(!$refer_info){
return "";
}
$this->production_article_refer_obj->where('p_article_id', $refer_info['p_article_id'])->where('index', ">", $refer_info['index'])->where('state', 0)->setDec('index');
$this->production_article_refer_obj->where('p_refer_id', $p_refer_id)->update(['state' => 1]);
}
public function getMajorShu($major)
{