|
|
@ -35,6 +35,10 @@ class IndustryOrderStatus extends RowAction |
|
|
DB::beginTransaction(); |
|
|
DB::beginTransaction(); |
|
|
try { |
|
|
try { |
|
|
$order = IndustryOrder::where(['id' => $id, 'status' => OrderStatus::OFFLINE_UNPAID])->find($id); |
|
|
$order = IndustryOrder::where(['id' => $id, 'status' => OrderStatus::OFFLINE_UNPAID])->find($id); |
|
|
|
|
|
if (!$order) { |
|
|
|
|
|
throw new \Exception('订单不存在或者已审核过了'); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//操作订单表
|
|
|
//操作订单表
|
|
|
$order->status = OrderStatus::OFFLINE_PAID; |
|
|
$order->status = OrderStatus::OFFLINE_PAID; |
|
|
$order->paid_at = now(); |
|
|
$order->paid_at = now(); |
|
|
|