|
@@ -151,6 +151,12 @@ class NewsCate extends Controller
|
|
|
if($this->request->get()){
|
|
|
$this->pid = input('pid',0);
|
|
|
$this->pname = NTC::where(['id'=>$this->pid])->value('title');
|
|
|
+ $this->is_desc = 1;
|
|
|
+ if($this->request->action() == 'add'){
|
|
|
+ $this->is_desc = $this->pid ?1:0;
|
|
|
+ }else{
|
|
|
+ $this->is_desc = $data['pid'] > 0 ? 1:0;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|