Przeglądaj źródła

提交config配置

lip 1 tydzień temu
rodzic
commit
0873fc38dc
1 zmienionych plików z 1 dodań i 1 usunięć
  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) {