Explorar o código

提交config配置

lip hai 1 semana
pai
achega
0873fc38dc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Http/Controllers/admin/LhcOrder.php

+ 1 - 1
app/Http/Controllers/admin/LhcOrder.php

@@ -94,7 +94,7 @@ class LhcOrder extends Controller
                 'id' => ['required', 'integer'],
             ]);
             $id = request()->input('id');
-            $order = LhcOrderModel::where('id', $id)->first();
+            $order = LhcOrderModel::with(['lottery'])->where('id', $id)->first();
             if (!$order) throw new Exception('订单不存在');
             $order = $order->toArray();
         } catch (Exception $e) {