|
...
|
...
|
@@ -116,7 +116,7 @@ class BlogCategoryLogic extends BaseLogic |
|
|
|
public function cateAdd(){
|
|
|
|
//拼接参数
|
|
|
|
$this->param = $this->addParamProcessing($this->param);
|
|
|
|
try {
|
|
|
|
// try {
|
|
|
|
$id = $this->model->addReturnId($this->param);
|
|
|
|
//非顶级菜单处理子集
|
|
|
|
if($this->param['pid'] != 0){
|
|
...
|
...
|
@@ -139,9 +139,9 @@ class BlogCategoryLogic extends BaseLogic |
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}catch (\Exception $e){
|
|
|
|
$this->fail('系统错误请联系管理员');
|
|
|
|
}
|
|
|
|
// }catch (\Exception $e){
|
|
|
|
// $this->fail('系统错误请联系管理员');
|
|
|
|
// }
|
|
|
|
return $this->success($id);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|