正在显示
1 个修改的文件
包含
6 行增加
和
4 行删除
| @@ -14,6 +14,7 @@ use App\Models\RouteMap\RouteMap; | @@ -14,6 +14,7 @@ use App\Models\RouteMap\RouteMap; | ||
| 14 | use App\Models\Template\BTemplate; | 14 | use App\Models\Template\BTemplate; |
| 15 | use App\Services\CosService; | 15 | use App\Services\CosService; |
| 16 | use Illuminate\Support\Facades\DB; | 16 | use Illuminate\Support\Facades\DB; |
| 17 | +use Illuminate\Support\Facades\Log; | ||
| 17 | 18 | ||
| 18 | /** | 19 | /** |
| 19 | * Class ProductLogic | 20 | * Class ProductLogic |
| @@ -44,7 +45,7 @@ class ProductLogic extends BaseLogic | @@ -44,7 +45,7 @@ class ProductLogic extends BaseLogic | ||
| 44 | $category_ids = $this->handleCategory(); | 45 | $category_ids = $this->handleCategory(); |
| 45 | //处理其他字段 | 46 | //处理其他字段 |
| 46 | $this->param = $this->handleSaveParam($this->param); | 47 | $this->param = $this->handleSaveParam($this->param); |
| 47 | -// try { | 48 | + try { |
| 48 | if(isset($this->param['id']) && !empty($this->param['id'])){ | 49 | if(isset($this->param['id']) && !empty($this->param['id'])){ |
| 49 | $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 |
| 50 | $six_read = $this->param['six_read'] ?? 0;//是否按6.0显示 | 51 | $six_read = $this->param['six_read'] ?? 0;//是否按6.0显示 |
| @@ -65,9 +66,10 @@ class ProductLogic extends BaseLogic | @@ -65,9 +66,10 @@ class ProductLogic extends BaseLogic | ||
| 65 | CategoryRelated::saveRelated($id, $category_ids); | 66 | CategoryRelated::saveRelated($id, $category_ids); |
| 66 | //保存扩展字段 | 67 | //保存扩展字段 |
| 67 | $this->saveExtendInfo($id,$extend); | 68 | $this->saveExtendInfo($id,$extend); |
| 68 | -// }catch (\Exception $e){ | ||
| 69 | -// $this->fail('系统错误请联系管理员'); | ||
| 70 | -// } | 69 | + }catch (\Exception $e){ |
| 70 | + Log::info('错误信息---'.$e->getMessage()); | ||
| 71 | + $this->fail('系统错误请联系管理员'); | ||
| 72 | + } | ||
| 71 | $this->addUpdateNotify(RouteMap::SOURCE_PRODUCT,$route); | 73 | $this->addUpdateNotify(RouteMap::SOURCE_PRODUCT,$route); |
| 72 | $this->curlDelRoute(['new_route'=>$route]); | 74 | $this->curlDelRoute(['new_route'=>$route]); |
| 73 | return $this->success(); | 75 | return $this->success(); |
-
请 注册 或 登录 后发表评论