作者 lyh

gx

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