|
|
@@ -8,6 +8,7 @@ use App\Components\AsyncResponse;
|
|
|
use App\DeliveryAppointment;
|
|
|
use App\DeliveryAppointmentCar;
|
|
|
use App\DeliveryAppointmentDetail;
|
|
|
+use App\Events\DeliveryAppointmentEvent;
|
|
|
use App\Imports\AppointmentDetail;
|
|
|
use App\Services\common\ExportService;
|
|
|
use App\Services\common\QueryService;
|
|
|
@@ -365,7 +366,7 @@ html;
|
|
|
*/
|
|
|
public function checkAppointment()
|
|
|
{
|
|
|
- if (!$this->check(request("k"),65))return ["status"=>406];
|
|
|
+ if (!$this->check(request("k"),180))return ["status"=>406];
|
|
|
$number = request("number");
|
|
|
if (!$number)return ["status"=>417];
|
|
|
$period = app("DeliveryAppointmentService")->getPeriod();
|
|
|
@@ -377,6 +378,8 @@ html;
|
|
|
})->first();
|
|
|
if (!$car)return ["status"=>417];
|
|
|
$car->update(["delivery_time"=>date("Y-m-d H:i:s")]);
|
|
|
+ /** @var DeliveryAppointmentCar $car */
|
|
|
+ event(new DeliveryAppointmentEvent($car));
|
|
|
return ["status"=>200,"k"=>$car->delivery_appointment_id];
|
|
|
}
|
|
|
|