|
...
|
...
|
@@ -75,14 +75,14 @@ class ProductLogic extends BaseLogic |
|
|
|
if($this->user['project_id'] != 2059){//2059项目不处理排序
|
|
|
|
$param['sort'] = $this->setProductSort();
|
|
|
|
}
|
|
|
|
try {
|
|
|
|
// try {
|
|
|
|
$id = $this->model->addReturnId($param);
|
|
|
|
$route = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_PRODUCT, $id, $this->user['project_id']);
|
|
|
|
$this->model->edit(['route'=>$route],['id'=>$id]);
|
|
|
|
//保存新描述
|
|
|
|
}catch (\Exception $e){
|
|
|
|
$this->fail('操作失败,请联系管理员:'.$e->getMessage());
|
|
|
|
}
|
|
|
|
// }catch (\Exception $e){
|
|
|
|
// $this->fail('操作失败,请联系管理员:'.$e->getMessage());
|
|
|
|
// }
|
|
|
|
return $this->success(['id'=>$id,'route'=>$route]);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|