|
@@ -277,10 +277,9 @@ public function create()
|
|
|
Db::rollback();
|
|
|
return error_show(1005, "新建失败");
|
|
|
}
|
|
|
- if($level==3){
|
|
|
+
|
|
|
$catinfo=['cat_id'=>$datainfo,'apply_name'=>$creater,"apply_id"=>$createrid,"fund_code"=>$fund_code,"status"=>0];
|
|
|
$this->addPlat($catinfo);
|
|
|
- }
|
|
|
Db::commit();
|
|
|
return error_show(0, "新建成功");
|
|
|
} else {
|
|
@@ -427,10 +426,9 @@ public function edit(){
|
|
|
}
|
|
|
}
|
|
|
$itn =sear($id);
|
|
|
- if($level==3){
|
|
|
+
|
|
|
$catinfo=['cat_id'=>$id,'apply_name'=>$creater,"apply_id"=>$createrid,"fund_code"=>$fund_code,"status"=>$idinfo['status']];
|
|
|
$this->addPlat($catinfo);
|
|
|
- }
|
|
|
Db::commit();
|
|
|
return error_show(0,"编辑成功");
|
|
|
}else{
|
|
@@ -573,10 +571,10 @@ public function status(){
|
|
|
$it['updatetime']=date("Y-m-d H:i:s");
|
|
|
$str = Db::name('cat')->where(['id'=>$cat,'is_del'=>0])->save($it);
|
|
|
if($str){
|
|
|
- if($stn['level']==3){
|
|
|
+
|
|
|
$catinfo=['cat_id'=>$id,"status"=>$status];
|
|
|
$this->addPlat($catinfo);
|
|
|
- }else{
|
|
|
+ if (!empty($cat)){
|
|
|
$catinfo=['cat_id'=> $cat,"status"=>$status];
|
|
|
$this->addPlat($catinfo);
|
|
|
}
|