|
...
|
...
|
@@ -212,17 +212,17 @@ class ProductLogic extends BaseLogic |
|
|
|
}else{
|
|
|
|
unset($this->param['thumb']);
|
|
|
|
}
|
|
|
|
// try {
|
|
|
|
// if(isset($this->param['route']) && !empty($this->param['route'])){
|
|
|
|
// $this->param['route'] = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_PRODUCT, $this->param['id'], $this->user['project_id']);
|
|
|
|
try {
|
|
|
|
if(isset($this->param['route']) && !empty($this->param['route'])){
|
|
|
|
$this->param['route'] = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_PRODUCT, $this->param['id'], $this->user['project_id']);
|
|
|
|
// $this->editProductRoute($this->param['id'],$this->param['route']);
|
|
|
|
// }
|
|
|
|
// $this->model->edit($this->param,['id'=>$this->param['id']]);
|
|
|
|
// //产品分类关联
|
|
|
|
// CategoryRelated::saveRelated($this->param['id'], $category_ids);
|
|
|
|
// }catch (\Exception $e){
|
|
|
|
// $this->fail('系统错误,请连续管理员');
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
$this->model->edit($this->param,['id'=>$this->param['id']]);
|
|
|
|
//产品分类关联
|
|
|
|
CategoryRelated::saveRelated($this->param['id'], $category_ids);
|
|
|
|
}catch (\Exception $e){
|
|
|
|
$this->fail('系统错误,请连续管理员');
|
|
|
|
}
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|