|
...
|
...
|
@@ -45,7 +45,7 @@ class ProductLogic extends BaseLogic |
|
|
|
$category_ids = $this->handleCategory();
|
|
|
|
//处理其他字段
|
|
|
|
$this->param = $this->handleSaveParam($this->param);
|
|
|
|
// try {
|
|
|
|
try {
|
|
|
|
if(isset($this->param['id']) && !empty($this->param['id'])){
|
|
|
|
$is_upgrade = $this->param['is_upgrade'] ?? 0;//1:5.0数据 0:6.0
|
|
|
|
$six_read = $this->param['six_read'] ?? 0;//是否按6.0显示
|
|
...
|
...
|
@@ -66,10 +66,10 @@ class ProductLogic extends BaseLogic |
|
|
|
CategoryRelated::saveRelated($id, $category_ids);
|
|
|
|
//保存扩展字段
|
|
|
|
$this->saveExtendInfo($id,$extend);
|
|
|
|
// }catch (\Exception $e){
|
|
|
|
// Log::info('错误信息---'.$e->getMessage());
|
|
|
|
// $this->fail('系统错误,请联系管理员');
|
|
|
|
// }
|
|
|
|
}catch (\Exception $e){
|
|
|
|
Log::info('错误信息---'.$e->getMessage());
|
|
|
|
$this->fail('系统错误,请联系管理员');
|
|
|
|
}
|
|
|
|
$this->addUpdateNotify(RouteMap::SOURCE_PRODUCT,$route);
|
|
|
|
$this->curlDelRoute(['new_route'=>$route]);
|
|
|
|
return $this->success(['id'=>$id]);
|
...
|
...
|
|