正在显示
1 个修改的文件
包含
0 行增加
和
4 行删除
| @@ -140,7 +140,6 @@ class KeywordLogic extends BaseLogic | @@ -140,7 +140,6 @@ class KeywordLogic extends BaseLogic | ||
| 140 | if (empty($route_array)) { | 140 | if (empty($route_array)) { |
| 141 | $this->fail('路由生成失败,请稍后重试!'); | 141 | $this->fail('路由生成失败,请稍后重试!'); |
| 142 | } | 142 | } |
| 143 | - try { | ||
| 144 | $num = count($this->param['title']); | 143 | $num = count($this->param['title']); |
| 145 | if($num > 1000){ | 144 | if($num > 1000){ |
| 146 | $this->fail('最大数量不能超过1000'); | 145 | $this->fail('最大数量不能超过1000'); |
| @@ -164,9 +163,6 @@ class KeywordLogic extends BaseLogic | @@ -164,9 +163,6 @@ class KeywordLogic extends BaseLogic | ||
| 164 | $this->model->edit(['route'=>$route],['id'=>$id]); | 163 | $this->model->edit(['route'=>$route],['id'=>$id]); |
| 165 | } | 164 | } |
| 166 | } | 165 | } |
| 167 | - }catch (\Exception $e){ | ||
| 168 | - $this->fail('error'); | ||
| 169 | - } | ||
| 170 | return $this->success(); | 166 | return $this->success(); |
| 171 | } | 167 | } |
| 172 | 168 |
-
请 注册 或 登录 后发表评论