bike = $bike; $this->delay(Carbon::now()->addMinutes(30)); } /** * Execute the job. * * @return void */ public function handle() { $bike_no = $this->bike->bike_no; $box_no = $this->bike->box_no; $order = (new BikeStatusInfoSyncHandler())->getRideBikeOrderInfo($bike_no); if (isset($order['role']) && in_array($order['role'], [BikeStatusInfoSyncHandler::ROLE_BIND, BikeStatusInfoSyncHandler::ROLE_WORKER])) { $bike_location = LocationsLog::getNewestLocationByBikeNo($bike_no); (new BikeStatusInfoSyncHandler())->toBikeWaitRideStatus($bike_no, $bike_location['lng'], $bike_location['lat'], $this->bike->put_status); (new BaseBikeControl($box_no))::closeLock(); } return; } }