Merge branch 'sxy' into dev

This commit is contained in:
孙肖扬 2025-03-17 11:55:41 +08:00
commit cf62d51d06

View File

@ -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")