1
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user