Browse Source

优化翻译文字日志写入

master
wanghongjun 4 days ago
parent
commit
515da0c87e
  1. 3
      app/Imports/ParkingLicensePlateImport.php
  2. 3
      app/Imports/ParkingVipListImport.php

3
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();

3
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;

Loading…
Cancel
Save