作者 lyh

gx

@@ -44,7 +44,7 @@ class ProductLogic extends BaseLogic @@ -44,7 +44,7 @@ class ProductLogic extends BaseLogic
44 $category_ids = $this->handleCategory(); 44 $category_ids = $this->handleCategory();
45 //处理其他字段 45 //处理其他字段
46 $this->param = $this->handleSaveParam($this->param); 46 $this->param = $this->handleSaveParam($this->param);
47 - try { 47 +// try {
48 if(isset($this->param['id']) && !empty($this->param['id'])){ 48 if(isset($this->param['id']) && !empty($this->param['id'])){
49 $is_upgrade = $this->param['is_upgrade'] ?? 0;//1:5.0数据 0:6.0 49 $is_upgrade = $this->param['is_upgrade'] ?? 0;//1:5.0数据 0:6.0
50 $six_read = $this->param['six_read'] ?? 0;//是否按6.0显示 50 $six_read = $this->param['six_read'] ?? 0;//是否按6.0显示
@@ -65,9 +65,9 @@ class ProductLogic extends BaseLogic @@ -65,9 +65,9 @@ class ProductLogic extends BaseLogic
65 CategoryRelated::saveRelated($id, $category_ids); 65 CategoryRelated::saveRelated($id, $category_ids);
66 //保存扩展字段 66 //保存扩展字段
67 $this->saveExtendInfo($id,$extend); 67 $this->saveExtendInfo($id,$extend);
68 - }catch (\Exception $e){  
69 - $this->fail('系统错误请联系管理员');  
70 - } 68 +// }catch (\Exception $e){
  69 +// $this->fail('系统错误请联系管理员');
  70 +// }
71 $this->addUpdateNotify(RouteMap::SOURCE_PRODUCT,$route); 71 $this->addUpdateNotify(RouteMap::SOURCE_PRODUCT,$route);
72 $this->curlDelRoute(['new_route'=>$route]); 72 $this->curlDelRoute(['new_route'=>$route]);
73 return $this->success(); 73 return $this->success();