|
@@ -149,7 +149,7 @@ class CustomModuleContentLogic extends BaseLogic |
|
@@ -149,7 +149,7 @@ class CustomModuleContentLogic extends BaseLogic |
|
149
|
* @time :2023/12/7 15:04
|
149
|
* @time :2023/12/7 15:04
|
|
150
|
*/
|
150
|
*/
|
|
151
|
public function contentAdd(){
|
151
|
public function contentAdd(){
|
|
152
|
-// try {
|
152
|
+ try {
|
|
153
|
$this->param['sort'] = $this->setNewsSort();
|
153
|
$this->param['sort'] = $this->setNewsSort();
|
|
154
|
$id = $this->model->addReturnId($this->param);
|
154
|
$id = $this->model->addReturnId($this->param);
|
|
155
|
$route = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_MODULE,
|
155
|
$route = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_MODULE,
|
|
@@ -157,9 +157,9 @@ class CustomModuleContentLogic extends BaseLogic |
|
@@ -157,9 +157,9 @@ class CustomModuleContentLogic extends BaseLogic |
|
157
|
$this->addUpdateNotify(RouteMap::SOURCE_MODULE,$route);
|
157
|
$this->addUpdateNotify(RouteMap::SOURCE_MODULE,$route);
|
|
158
|
$this->curlDelRoute(['new_route'=>$route]);
|
158
|
$this->curlDelRoute(['new_route'=>$route]);
|
|
159
|
$this->edit(['route' => $route], ['id' => $id]);
|
159
|
$this->edit(['route' => $route], ['id' => $id]);
|
|
160
|
-// }catch (\Exception $e){
|
|
|
|
161
|
-// $this->fail('系统错误,请联系管理员');
|
|
|
|
162
|
-// }
|
160
|
+ }catch (\Exception $e){
|
|
|
|
161
|
+ $this->fail('系统错误,请联系管理员');
|
|
|
|
162
|
+ }
|
|
163
|
return $id;
|
163
|
return $id;
|
|
164
|
}
|
164
|
}
|
|
165
|
|
165
|
|