diff --git a/app/Models/ParkingAbnormal.php b/app/Models/ParkingAbnormal.php index d6e7c44..2171194 100644 --- a/app/Models/ParkingAbnormal.php +++ b/app/Models/ParkingAbnormal.php @@ -29,7 +29,7 @@ class ParkingAbnormal extends Model protected $hidden = [ 'created_at', - 'update_at' + 'updated_at' ]; public function getEnterAtAttribute($value): string diff --git a/app/Services/ParkingAbnormalService.php b/app/Services/ParkingAbnormalService.php index f789b57..426024d 100644 --- a/app/Services/ParkingAbnormalService.php +++ b/app/Services/ParkingAbnormalService.php @@ -83,6 +83,7 @@ class ParkingAbnormalService extends BaseService $typeArr = $this->getType(); $item['type'] = $typeArr[$item['type']]; $statusArr = $this->getStatus(); + $item['status_index'] = $item['status']; $item['status'] = $statusArr[$item['status']]; $operationTypeArr = $this->getOperationType(); $item['operation_type'] = $operationTypeArr[$item['operation_type']] ??