Zhouzhendong 5 лет назад
Родитель
Сommit
f0d67503c3

+ 2 - 1
app/Http/Controllers/DeliveryAppointmentController.php

@@ -384,7 +384,8 @@ html;
     {
         if (!request("k"))return view("exception.404");
         /** @var \stdClass $appointment */
-        $appointment = DeliveryAppointment::query()->with(["cars"=>function(Builder $query){
+        $appointment = DeliveryAppointment::query()->with(["cars"=>function($query){
+            /** @var Builder $query */
             $query->whereNull("delivery_time");
         }])->find(request("k"));
         return view("store.deliveryAppointment.deliverySuccess",["cars"=>$appointment->cars]);

+ 1 - 9
app/Http/Controllers/TestController.php

@@ -157,15 +157,7 @@ class TestController extends Controller
     }
     public function tt1()
     {
-        $a = new DeliveryAppointmentCar();
-        $a->delivery_appointment_id = 1;
-        $a->license_plate_number = "沪A12345";
-        $a->car_id = 1;
-        $a->driver_name = "王五";
-        $a->driver_phone = "1587964851";
-
-        event(new DeliveryAppointmentEvent($a));
-        return 1;
+        return view("store.deliveryAppointment.delivery",["k"=>"15661461456"]);
     }
     public function zzd(){
         ini_set('max_execution_time',2500);