From 4e806e9119e9f17226feb369046e191c203db531 Mon Sep 17 00:00:00 2001 From: sxy <3187870250@qq.com> Date: Mon, 17 Mar 2025 11:55:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=BC=E5=87=BA=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/logic/excel.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkg/logic/excel.go b/pkg/logic/excel.go index 2b9b237..5fb38d9 100644 --- a/pkg/logic/excel.go +++ b/pkg/logic/excel.go @@ -2,21 +2,22 @@ package logic import ( "fmt" - "github.com/360EntSecGroup-Skylar/excelize" - "github.com/exhibition-main/internal/model" - "github.com/exhibition-main/pkg/utils" "image" "math" "os" "path/filepath" "strings" + + "github.com/360EntSecGroup-Skylar/excelize" + "github.com/exhibition-main/internal/model" + "github.com/exhibition-main/pkg/utils" ) func DealExcelImg(filePath string) (err error) { f, err := excelize.OpenFile(filePath) filename := filepath.Base(filePath) - var cellHeight, cellWidth float64 = 150, 40 - + // var cellHeight, cellWidth float64 = 150, 40 + var cellHeight, cellWidth float64 = 100, 20 //minColumn := int([]byte("A")[0]) // string(rune(i)) rows := f.GetRows("Sheet1")