正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -57,7 +57,7 @@ class CustomTemplateLogic extends BaseLogic | @@ -57,7 +57,7 @@ class CustomTemplateLogic extends BaseLogic | ||
| 57 | * @time :2023/6/29 16:21 | 57 | * @time :2023/6/29 16:21 |
| 58 | */ | 58 | */ |
| 59 | public function customTemplateSave(){ | 59 | public function customTemplateSave(){ |
| 60 | - try { | 60 | +// try { |
| 61 | $this->param['url'] = str_replace_url($this->param['url']); | 61 | $this->param['url'] = str_replace_url($this->param['url']); |
| 62 | if(isset($this->param['id']) && !empty($this->param['id'])){ | 62 | if(isset($this->param['id']) && !empty($this->param['id'])){ |
| 63 | $id = $this->editCustomRoute($this->param['id'],$this->param['url']); | 63 | $id = $this->editCustomRoute($this->param['id'],$this->param['url']); |
| @@ -68,9 +68,9 @@ class CustomTemplateLogic extends BaseLogic | @@ -68,9 +68,9 @@ class CustomTemplateLogic extends BaseLogic | ||
| 68 | } | 68 | } |
| 69 | $route = RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_PAGE, $id, $this->user['project_id']); | 69 | $route = RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_PAGE, $id, $this->user['project_id']); |
| 70 | $this->model->edit(['url'=>$route],['id'=>$id]); | 70 | $this->model->edit(['url'=>$route],['id'=>$id]); |
| 71 | - }catch (\Exception $e){ | ||
| 72 | - $this->fail('error'); | ||
| 73 | - } | 71 | +// }catch (\Exception $e){ |
| 72 | +// $this->fail('error'); | ||
| 73 | +// } | ||
| 74 | //TODO::通知网站更新 | 74 | //TODO::通知网站更新 |
| 75 | $data = ['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_PAGE, 'route'=>$route]; | 75 | $data = ['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_PAGE, 'route'=>$route]; |
| 76 | $this->updateNotify($data); | 76 | $this->updateNotify($data); |
-
请 注册 或 登录 后发表评论