This commit is contained in:
2025-12-13 17:31:15 +08:00
parent 9ff8955ed6
commit aecb35cfcc
+1 -2
View File
@@ -102,7 +102,7 @@ class SkuController extends BaseController
$highestCol = $sheet->getHighestColumn();
$header = $sheet->rangeToArray("A1:{$highestCol}1")[0];
$header = array_map('trim', $header);
// $header = array_map('trim', $header);
$allowFields = [
'product_name' => '产品名称',
@@ -208,7 +208,6 @@ class SkuController extends BaseController
public function template(Request $request): Response
{
$filePath = runtime_path() . '/upload/import.xlsx';
var_dump($filePath);
if (!file_exists($filePath)) {
return response('文件不存在', 404);