diff --git a/app/Imports/ParkingLicensePlateImport.php b/app/Imports/ParkingLicensePlateImport.php index 960b92d..3793bbd 100644 --- a/app/Imports/ParkingLicensePlateImport.php +++ b/app/Imports/ParkingLicensePlateImport.php @@ -18,6 +18,7 @@ class ParkingLicensePlateImport implements ToModel, WithHeadingRow public function __construct() { $this->logService = new OperationLogService(); + $this->logService->menuTitle = 'cat_attr'; } /** @@ -42,7 +43,7 @@ class ParkingLicensePlateImport implements ToModel, WithHeadingRow 'space_type_id' => $data[1], 'created_at' => get_datetime() ]); - $this->logService->logCreated($model, '创建车牌号码'); + $this->logService->logCreated($model, 'license_plate.create'); return $model; } return new ParkingLicensePlate(); diff --git a/app/Imports/ParkingVipListImport.php b/app/Imports/ParkingVipListImport.php index 7df1611..97b0c57 100644 --- a/app/Imports/ParkingVipListImport.php +++ b/app/Imports/ParkingVipListImport.php @@ -19,6 +19,7 @@ class ParkingVipListImport implements ToModel, WithHeadingRow public function __construct() { $this->logService = new OperationLogService(); + $this->logService->menuTitle = 'vip_list'; } /** @@ -36,7 +37,7 @@ class ParkingVipListImport implements ToModel, WithHeadingRow 'user_id' => Auth::guard('sanctum')->user()['id'], 'created_at' => get_datetime() ]); - $this->logService->logCreated($model, '创建VIP名单'); + $this->logService->logCreated($model, 'vip_list.create'); return $model; } break;