Jelajahi Sumber

fix:字段类型,int改为float类型

Roc 1 tahun lalu
induk
melakukan
d0fee0fb07

+ 3 - 0
main.go

@@ -26,6 +26,9 @@ func main() {
 	// 异常处理
 	web.ErrorController(&controllers.ErrorController{})
 
+	// 内存调整
+	web.BConfig.MaxMemory = 1024 * 1024 * 128
+
 	web.BConfig.RecoverFunc = Recover
 	web.Run()
 }

+ 1 - 1
models/data_manage/request/meeting_probabilities.go

@@ -22,7 +22,7 @@ type ISheet struct {
 	ChWidth                  int              `json:"ch_width"`
 	RhHeight                 int              `json:"rh_height"`
 	LuckySheetSelectionRange []int            `json:"luckysheet_selection_range"`
-	ZoomRatio                int              `json:"zoomRatio"`
+	ZoomRatio                float64          `json:"zoomRatio"`
 	CellData                 []ISheetCellData `json:"celldata"`
 }
 type ISheetData struct {

+ 1 - 1
services/data/excel/custom_analysis.go

@@ -405,7 +405,7 @@ type LuckySheet struct {
 	Config           interface{}
 	Index            string               `json:"index"`
 	Order            int                  `json:"order"`
-	ZoomRatio        int                  `json:"zoomRatio"`
+	ZoomRatio        float64              `json:"zoomRatio"`
 	ShowGridLines    string               `json:"showGridLines"`
 	DefaultColWidth  int                  `json:"defaultColWidth"`
 	DefaultRowHeight int                  `json:"defaultRowHeight"`