正在显示
1 个修改的文件
包含
10 行增加
和
10 行删除
| @@ -212,17 +212,17 @@ class ProductLogic extends BaseLogic | @@ -212,17 +212,17 @@ class ProductLogic extends BaseLogic | ||
| 212 | }else{ | 212 | }else{ |
| 213 | unset($this->param['thumb']); | 213 | unset($this->param['thumb']); |
| 214 | } | 214 | } |
| 215 | -// try { | ||
| 216 | -// if(isset($this->param['route']) && !empty($this->param['route'])){ | ||
| 217 | -// $this->param['route'] = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_PRODUCT, $this->param['id'], $this->user['project_id']); | 215 | + try { |
| 216 | + if(isset($this->param['route']) && !empty($this->param['route'])){ | ||
| 217 | + $this->param['route'] = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_PRODUCT, $this->param['id'], $this->user['project_id']); | ||
| 218 | // $this->editProductRoute($this->param['id'],$this->param['route']); | 218 | // $this->editProductRoute($this->param['id'],$this->param['route']); |
| 219 | -// } | ||
| 220 | -// $this->model->edit($this->param,['id'=>$this->param['id']]); | ||
| 221 | -// //产品分类关联 | ||
| 222 | -// CategoryRelated::saveRelated($this->param['id'], $category_ids); | ||
| 223 | -// }catch (\Exception $e){ | ||
| 224 | -// $this->fail('系统错误,请连续管理员'); | ||
| 225 | -// } | 219 | + } |
| 220 | + $this->model->edit($this->param,['id'=>$this->param['id']]); | ||
| 221 | + //产品分类关联 | ||
| 222 | + CategoryRelated::saveRelated($this->param['id'], $category_ids); | ||
| 223 | + }catch (\Exception $e){ | ||
| 224 | + $this->fail('系统错误,请连续管理员'); | ||
| 225 | + } | ||
| 226 | return $this->success(); | 226 | return $this->success(); |
| 227 | } | 227 | } |
| 228 | 228 |
-
请 注册 或 登录 后发表评论