1
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user