|
@@ -154,7 +154,7 @@ class CustomModuleContentLogic extends BaseLogic |
|
@@ -154,7 +154,7 @@ class CustomModuleContentLogic extends BaseLogic |
|
154
|
if($info !== false){
|
154
|
if($info !== false){
|
|
155
|
$this->fail('当前数据名称已存在');
|
155
|
$this->fail('当前数据名称已存在');
|
|
156
|
}
|
156
|
}
|
|
157
|
- try {
|
157
|
+// try {
|
|
158
|
$this->param['sort'] = $this->setNewsSort();
|
158
|
$this->param['sort'] = $this->setNewsSort();
|
|
159
|
$id = $this->model->addReturnId($this->param);
|
159
|
$id = $this->model->addReturnId($this->param);
|
|
160
|
$route = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_MODULE,
|
160
|
$route = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_MODULE,
|
|
@@ -162,9 +162,9 @@ class CustomModuleContentLogic extends BaseLogic |
|
@@ -162,9 +162,9 @@ class CustomModuleContentLogic extends BaseLogic |
|
162
|
$this->addUpdateNotify(RouteMap::SOURCE_MODULE,$route);
|
162
|
$this->addUpdateNotify(RouteMap::SOURCE_MODULE,$route);
|
|
163
|
$this->curlDelRoute(['new_route'=>$route]);
|
163
|
$this->curlDelRoute(['new_route'=>$route]);
|
|
164
|
$this->edit(['route' => $route], ['id' => $id]);
|
164
|
$this->edit(['route' => $route], ['id' => $id]);
|
|
165
|
- }catch (\Exception $e){
|
|
|
|
166
|
- $this->fail('系统错误,请联系管理员');
|
|
|
|
167
|
- }
|
165
|
+// }catch (\Exception $e){
|
|
|
|
166
|
+// $this->fail('系统错误,请联系管理员');
|
|
|
|
167
|
+// }
|
|
168
|
return $id;
|
168
|
return $id;
|
|
169
|
}
|
169
|
}
|
|
170
|
|
170
|
|