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()); }