This commit is contained in:
wangjinlei
2023-07-11 09:28:06 +08:00
parent a4c92e437a
commit cf65d492f4
4 changed files with 70 additions and 0 deletions

View File

@@ -559,6 +559,17 @@ class Base extends Controller
}
}
public function refuseReferIndex($p_article_id){
$p_info = $this->production_article_refer_obj->where('p_article_id',$p_article_id)->where('state',0)->where('index',">",0)->find();
if($p_info){
return ;
}
$list = $this->production_article_refer_obj->where('p_article_id',$p_article_id)->where('state',0)->select();
foreach ($list as $k => $v){
$this->production_article_refer_obj->where('p_refer_id',$v['p_refer_id'])->update(['index'=>$k]);
}
}
public function getProductionMainImgsByNew($p_article_id,$file){
$p_info = $this->production_article_obj->where('p_article_id',$p_article_id)->find();