From 0da85f543aebfe67f732318b4bc3fe420d7fb390 Mon Sep 17 00:00:00 2001 From: vine_liutk <961510893@qq.com> Date: Fri, 3 Dec 2021 14:27:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=BC=82=E5=B8=B8=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Admin/Actions/Grid/ReleaseCancel.php | 1 + app/Admin/Actions/Grid/ReleaseDown.php | 1 + app/Admin/Actions/Grid/ReleaseUp.php | 1 + app/Admin/Actions/Grid/SkuSyncSpu.php | 1 + app/Admin/Extensions/Grid/Tools/Product/BatchReleaseCancel.php | 1 + app/Admin/Extensions/Grid/Tools/Product/BatchReleaseDown.php | 1 + app/Admin/Extensions/Grid/Tools/Product/BatchReleaseUp.php | 1 + app/Admin/Extensions/Grid/Tools/Product/BatchSkuSyncSpu.php | 1 + app/Admin/Forms/SkuVerify.php | 1 + app/Admin/Forms/SkuVerifyBatch.php | 1 + 10 files changed, 10 insertions(+) diff --git a/app/Admin/Actions/Grid/ReleaseCancel.php b/app/Admin/Actions/Grid/ReleaseCancel.php index 2619dd8e..2b832e86 100644 --- a/app/Admin/Actions/Grid/ReleaseCancel.php +++ b/app/Admin/Actions/Grid/ReleaseCancel.php @@ -50,6 +50,7 @@ class ReleaseCancel extends RowAction DB::commit(); } catch (Throwable $th) { DB::rollBack(); + report($th); return $this->response()->error('操作失败,'.$th->getMessage())->refresh(); } diff --git a/app/Admin/Actions/Grid/ReleaseDown.php b/app/Admin/Actions/Grid/ReleaseDown.php index aff65a9a..1b774e41 100644 --- a/app/Admin/Actions/Grid/ReleaseDown.php +++ b/app/Admin/Actions/Grid/ReleaseDown.php @@ -50,6 +50,7 @@ class ReleaseDown extends RowAction DB::commit(); } catch (Throwable $th) { DB::rollBack(); + report($th); return $this->response()->error('操作失败,'.$th->getMessage())->refresh(); } diff --git a/app/Admin/Actions/Grid/ReleaseUp.php b/app/Admin/Actions/Grid/ReleaseUp.php index 837bc406..44bfe3cb 100644 --- a/app/Admin/Actions/Grid/ReleaseUp.php +++ b/app/Admin/Actions/Grid/ReleaseUp.php @@ -50,6 +50,7 @@ class ReleaseUp extends RowAction DB::commit(); } catch (Throwable $th) { DB::rollBack(); + report($th); return $this->response()->error('操作失败,'.$th->getMessage())->refresh(); } diff --git a/app/Admin/Actions/Grid/SkuSyncSpu.php b/app/Admin/Actions/Grid/SkuSyncSpu.php index a8ee94a0..9e7ff3ec 100644 --- a/app/Admin/Actions/Grid/SkuSyncSpu.php +++ b/app/Admin/Actions/Grid/SkuSyncSpu.php @@ -50,6 +50,7 @@ class SkuSyncSpu extends RowAction DB::commit(); } catch (Throwable $th) { DB::rollBack(); + report($th); return $this->response()->error('操作失败,'.$th->getMessage())->refresh(); } diff --git a/app/Admin/Extensions/Grid/Tools/Product/BatchReleaseCancel.php b/app/Admin/Extensions/Grid/Tools/Product/BatchReleaseCancel.php index 40e7e55c..e83ee908 100644 --- a/app/Admin/Extensions/Grid/Tools/Product/BatchReleaseCancel.php +++ b/app/Admin/Extensions/Grid/Tools/Product/BatchReleaseCancel.php @@ -56,6 +56,7 @@ class BatchReleaseCancel extends BatchAction DB::commit(); } catch (Throwable $th) { DB::rollBack(); + report($th); return $this->response()->error('操作失败,'.$th->getMessage())->refresh(); } diff --git a/app/Admin/Extensions/Grid/Tools/Product/BatchReleaseDown.php b/app/Admin/Extensions/Grid/Tools/Product/BatchReleaseDown.php index f920e4b0..de420c88 100644 --- a/app/Admin/Extensions/Grid/Tools/Product/BatchReleaseDown.php +++ b/app/Admin/Extensions/Grid/Tools/Product/BatchReleaseDown.php @@ -57,6 +57,7 @@ class BatchReleaseDown extends BatchAction DB::commit(); } catch (Throwable $th) { DB::rollBack(); + report($th); return $this->response()->error('操作失败,'.$th->getMessage())->refresh(); } diff --git a/app/Admin/Extensions/Grid/Tools/Product/BatchReleaseUp.php b/app/Admin/Extensions/Grid/Tools/Product/BatchReleaseUp.php index f9545fcb..061e5523 100644 --- a/app/Admin/Extensions/Grid/Tools/Product/BatchReleaseUp.php +++ b/app/Admin/Extensions/Grid/Tools/Product/BatchReleaseUp.php @@ -58,6 +58,7 @@ class BatchReleaseUp extends BatchAction DB::commit(); } catch (Throwable $th) { DB::rollBack(); + report($th); return $this->response()->error('操作失败,'.$th->getMessage())->refresh(); } diff --git a/app/Admin/Extensions/Grid/Tools/Product/BatchSkuSyncSpu.php b/app/Admin/Extensions/Grid/Tools/Product/BatchSkuSyncSpu.php index 98fbe9d1..05c97791 100644 --- a/app/Admin/Extensions/Grid/Tools/Product/BatchSkuSyncSpu.php +++ b/app/Admin/Extensions/Grid/Tools/Product/BatchSkuSyncSpu.php @@ -63,6 +63,7 @@ class BatchSkuSyncSpu extends BatchAction DB::commit(); } catch (Throwable $th) { DB::rollBack(); + report($th); } $message = '操作成功'; diff --git a/app/Admin/Forms/SkuVerify.php b/app/Admin/Forms/SkuVerify.php index 3912183a..9828d7f3 100644 --- a/app/Admin/Forms/SkuVerify.php +++ b/app/Admin/Forms/SkuVerify.php @@ -29,6 +29,7 @@ class SkuVerify extends Form implements LazyRenderable DB::commit(); } catch (Throwable $th) { DB::rollBack(); + report($th); return $this->response()->error('操作失败:'.$th->getMessage()); } diff --git a/app/Admin/Forms/SkuVerifyBatch.php b/app/Admin/Forms/SkuVerifyBatch.php index 3c543aa5..72de582a 100644 --- a/app/Admin/Forms/SkuVerifyBatch.php +++ b/app/Admin/Forms/SkuVerifyBatch.php @@ -31,6 +31,7 @@ class SkuVerifyBatch extends Form implements LazyRenderable DB::commit(); } catch (Throwable $th) { DB::rollBack(); + report($th); return $this->response()->error('操作失败:'.$th->getMessage()); }