|
@@ -119,8 +119,8 @@ class OrderService
|
|
|
})
|
|
|
->where('order_addtimes', '<', $timeUnix)
|
|
|
->get();
|
|
|
- \support\Log::info("取消的订单", $orders->toArray());
|
|
|
foreach ($orders as $order) {
|
|
|
+ \support\Log::info("取消的订单", ['order_id' => $order->order_id]);
|
|
|
// 订单主表
|
|
|
Order::where('order_id', $order->order_id)->update([
|
|
|
'order_is_complete' => 'Y',
|
|
@@ -182,7 +182,7 @@ class OrderService
|
|
|
|
|
|
Db::commit();
|
|
|
} catch (\Exception $e) {
|
|
|
- \support\Log::error("取消订单失败:".$e->getMessage());
|
|
|
+ \support\Log::error("取消订单失败:" . $e->getMessage());
|
|
|
Db::rollBack();
|
|
|
}
|
|
|
}
|