正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -50,7 +50,7 @@ class CategoryLogic extends BaseLogic | @@ -50,7 +50,7 @@ class CategoryLogic extends BaseLogic | ||
| 50 | public function getCateInfo($id) | 50 | public function getCateInfo($id) |
| 51 | { | 51 | { |
| 52 | $info = $this->model->read(['id'=>$id]); | 52 | $info = $this->model->read(['id'=>$id]); |
| 53 | - $info['url'] = $this->user['domain'] . $info['route']; | 53 | + $info['url'] = $info['route']; |
| 54 | $info['image_link'] = getImageUrl($info['image']); | 54 | $info['image_link'] = getImageUrl($info['image']); |
| 55 | //获取当前分类子集 | 55 | //获取当前分类子集 |
| 56 | $info['sub'] = $this->model->read(['pid'=>$info['id']]); | 56 | $info['sub'] = $this->model->read(['pid'=>$info['id']]); |
| @@ -76,7 +76,7 @@ class CategoryLogic extends BaseLogic | @@ -76,7 +76,7 @@ class CategoryLogic extends BaseLogic | ||
| 76 | $id = $this->model->addReturnId($this->param); | 76 | $id = $this->model->addReturnId($this->param); |
| 77 | } | 77 | } |
| 78 | //路由映射 | 78 | //路由映射 |
| 79 | - $route = RouteMap::setRoute($this->param['title'], RouteMap::SOURCE_PRODUCT_CATE, $id, $this->user['project_id']); | 79 | + $route = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_PRODUCT_CATE, $id, $this->user['project_id']); |
| 80 | DB::commit(); | 80 | DB::commit(); |
| 81 | } catch (\Exception $e){ | 81 | } catch (\Exception $e){ |
| 82 | DB::rollBack(); | 82 | DB::rollBack(); |
-
请 注册 或 登录 后发表评论