正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
| @@ -196,7 +196,9 @@ class CategoryLogic extends BaseLogic | @@ -196,7 +196,9 @@ class CategoryLogic extends BaseLogic | ||
| 196 | RouteMap::delRoute(RouteMap::SOURCE_PRODUCT_CATE, $id, $this->user['project_id']); | 196 | RouteMap::delRoute(RouteMap::SOURCE_PRODUCT_CATE, $id, $this->user['project_id']); |
| 197 | //生成一条删除路由记录 | 197 | //生成一条删除路由记录 |
| 198 | $info = $this->model->read(['id'=>$id],['id','route']); | 198 | $info = $this->model->read(['id'=>$id],['id','route']); |
| 199 | - $this->curlDelRoute(['route'=>$info['route']]); | 199 | + if($info !== false){ |
| 200 | + $this->curlDelRoute(['route'=>$info['route']]); | ||
| 201 | + } | ||
| 200 | return $this->success(); | 202 | return $this->success(); |
| 201 | } | 203 | } |
| 202 | 204 |
-
请 注册 或 登录 后发表评论