diff --git a/app/AdminSupplier/Extensions/Grid/IndustryOrderStatus.php b/app/AdminSupplier/Extensions/Grid/IndustryOrderStatus.php index 74b3f5e..bc9f48b 100644 --- a/app/AdminSupplier/Extensions/Grid/IndustryOrderStatus.php +++ b/app/AdminSupplier/Extensions/Grid/IndustryOrderStatus.php @@ -35,6 +35,10 @@ class IndustryOrderStatus extends RowAction DB::beginTransaction(); try { $order = IndustryOrder::where(['id' => $id, 'status' => OrderStatus::OFFLINE_UNPAID])->find($id); + if (!$order) { + throw new \Exception('订单不存在或者已审核过了'); + } + //操作订单表 $order->status = OrderStatus::OFFLINE_PAID; $order->paid_at = now();