正在显示
1 个修改的文件
包含
5 行增加
和
5 行删除
| @@ -41,7 +41,7 @@ class ProductLogic extends BaseLogic | @@ -41,7 +41,7 @@ class ProductLogic extends BaseLogic | ||
| 41 | * @time :2023/8/21 18:35 | 41 | * @time :2023/8/21 18:35 |
| 42 | */ | 42 | */ |
| 43 | public function productSave(){ | 43 | public function productSave(){ |
| 44 | - try { | 44 | +// try { |
| 45 | if(isset($this->param['id']) && !empty($this->param['id'])){ | 45 | if(isset($this->param['id']) && !empty($this->param['id'])){ |
| 46 | $data = $this->editProduct(); | 46 | $data = $this->editProduct(); |
| 47 | }else{ | 47 | }else{ |
| @@ -51,10 +51,10 @@ class ProductLogic extends BaseLogic | @@ -51,10 +51,10 @@ class ProductLogic extends BaseLogic | ||
| 51 | KeywordRelated::saveRelated($data['id'],$this->param['keyword_id'] ?? []);//关键字关联 | 51 | KeywordRelated::saveRelated($data['id'],$this->param['keyword_id'] ?? []);//关键字关联 |
| 52 | $this->saveExtendInfo($data['id'],$this->param['extend'] ?? []);//扩展字段 | 52 | $this->saveExtendInfo($data['id'],$this->param['extend'] ?? []);//扩展字段 |
| 53 | // $this->saveDetail($data['id'],$this->param['detail'] ?? []); | 53 | // $this->saveDetail($data['id'],$this->param['detail'] ?? []); |
| 54 | - }catch (\Exception $e){ | ||
| 55 | - Log::info('错误信息---'.$e->getMessage()); | ||
| 56 | - $this->fail('系统错误,请联系管理员'); | ||
| 57 | - } | 54 | +// }catch (\Exception $e){ |
| 55 | +// Log::info('错误信息---'.$e->getMessage()); | ||
| 56 | +// $this->fail('系统错误,请联系管理员'); | ||
| 57 | +// } | ||
| 58 | $this->addUpdateNotify(RouteMap::SOURCE_PRODUCT,$data['route'] ?? ''); | 58 | $this->addUpdateNotify(RouteMap::SOURCE_PRODUCT,$data['route'] ?? ''); |
| 59 | $this->curlDelRoute(['new_route'=>$data['route'] ?? '']); | 59 | $this->curlDelRoute(['new_route'=>$data['route'] ?? '']); |
| 60 | return $this->success(['id'=>$data['id']]); | 60 | return $this->success(['id'=>$data['id']]); |
-
请 注册 或 登录 后发表评论