|
...
|
...
|
@@ -50,7 +50,7 @@ class CategoryLogic extends BaseLogic |
|
|
|
public function getCateInfo($id)
|
|
|
|
{
|
|
|
|
$info = $this->model->read(['id'=>$id]);
|
|
|
|
$info['url'] = $this->user['domain'] . $info['route'];
|
|
|
|
$info['url'] = $info['route'];
|
|
|
|
$info['image_link'] = getImageUrl($info['image']);
|
|
|
|
//获取当前分类子集
|
|
|
|
$info['sub'] = $this->model->read(['pid'=>$info['id']]);
|
|
...
|
...
|
@@ -76,7 +76,7 @@ class CategoryLogic extends BaseLogic |
|
|
|
$id = $this->model->addReturnId($this->param);
|
|
|
|
}
|
|
|
|
//路由映射
|
|
|
|
$route = RouteMap::setRoute($this->param['title'], RouteMap::SOURCE_PRODUCT_CATE, $id, $this->user['project_id']);
|
|
|
|
$route = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_PRODUCT_CATE, $id, $this->user['project_id']);
|
|
|
|
DB::commit();
|
|
|
|
} catch (\Exception $e){
|
|
|
|
DB::rollBack();
|
...
|
...
|
|