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