|
|
|
@ -640,6 +640,11 @@ class ParkingSpaceService extends BaseService |
|
|
|
'status' => $status, |
|
|
|
'updated_at' => date("Y-m-d H:i:s", time()) |
|
|
|
]; |
|
|
|
if (!$status) { |
|
|
|
$update['license_plate_id'] = 0; |
|
|
|
$update['berthing_time'] = null; |
|
|
|
$update['recognition'] = ''; |
|
|
|
} |
|
|
|
$model->update($update); |
|
|
|
$this->logService->logUpdated( |
|
|
|
$model, |
|
|
|
|