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 ( import (
"fmt" "fmt"
"github.com/360EntSecGroup-Skylar/excelize"
"github.com/exhibition-main/internal/model"
"github.com/exhibition-main/pkg/utils"
"image" "image"
"math" "math"
"os" "os"
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/360EntSecGroup-Skylar/excelize"
"github.com/exhibition-main/internal/model"
"github.com/exhibition-main/pkg/utils"
) )
func DealExcelImg(filePath string) (err error) { func DealExcelImg(filePath string) (err error) {
f, err := excelize.OpenFile(filePath) f, err := excelize.OpenFile(filePath)
filename := filepath.Base(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]) //minColumn := int([]byte("A")[0])
// string(rune(i)) // string(rune(i))
rows := f.GetRows("Sheet1") rows := f.GetRows("Sheet1")