|
...
|
...
|
@@ -41,8 +41,6 @@ class ProductLogic extends BaseLogic |
|
|
|
$this->param = $this->handleSaveParam($this->param);
|
|
|
|
DB::connection('custom_mysql')->beginTransaction();
|
|
|
|
try {
|
|
|
|
//路由映射
|
|
|
|
$this->param['route'] = $this->param['route'].'-'.RouteMap::SOURCE_PRODUCT;
|
|
|
|
if(isset($this->param['id']) && !empty($this->param['id'])){
|
|
|
|
//查看路由是否更新
|
|
|
|
$id = $this->editProductRoute($this->param['id'],$this->param['route']);
|
|
...
|
...
|
@@ -51,6 +49,8 @@ class ProductLogic extends BaseLogic |
|
|
|
$this->param['project_id'] = $this->user['project_id'];
|
|
|
|
$this->param['created_at'] = date('Y-m-d H:i:s');
|
|
|
|
$this->param['updated_at'] = $this->param['created_at'];
|
|
|
|
//路由映射
|
|
|
|
$this->param['route'] = $this->param['route'].'-'.RouteMap::SOURCE_PRODUCT;
|
|
|
|
$id = $this->model->addReturnId($this->param);
|
|
|
|
}
|
|
|
|
$route = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_PRODUCT, $id, $this->user['project_id']);
|
...
|
...
|
|