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