正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -126,7 +126,7 @@ class KeywordLogic extends BaseLogic | @@ -126,7 +126,7 @@ class KeywordLogic extends BaseLogic | ||
| 126 | * @time :2023/8/28 14:03 | 126 | * @time :2023/8/28 14:03 |
| 127 | */ | 127 | */ |
| 128 | public function batchAdd(){ | 128 | public function batchAdd(){ |
| 129 | -// try { | 129 | + try { |
| 130 | foreach ($this->param['title'] as $v){ | 130 | foreach ($this->param['title'] as $v){ |
| 131 | $this->model = new Keyword(); | 131 | $this->model = new Keyword(); |
| 132 | $info = $this->model->read(['title'=>$v]); | 132 | $info = $this->model->read(['title'=>$v]); |
| @@ -141,9 +141,9 @@ class KeywordLogic extends BaseLogic | @@ -141,9 +141,9 @@ class KeywordLogic extends BaseLogic | ||
| 141 | // $this->curlDelRoute(['new_route'=>$route]); | 141 | // $this->curlDelRoute(['new_route'=>$route]); |
| 142 | } | 142 | } |
| 143 | } | 143 | } |
| 144 | -// }catch (\Exception $e){ | ||
| 145 | -// $this->fail('error'); | ||
| 146 | -// } | 144 | + }catch (\Exception $e){ |
| 145 | + $this->fail('保存失败,请联系管理员'); | ||
| 146 | + } | ||
| 147 | return $this->success(); | 147 | return $this->success(); |
| 148 | } | 148 | } |
| 149 | 149 |
-
请 注册 或 登录 后发表评论