Browse Source

Merge branch 'bug/5695' into debug

Roc 1 week ago
parent
commit
e86b4c8cdf
1 changed files with 4 additions and 1 deletions
  1. 4 1
      controllers/excel_info.go

+ 4 - 1
controllers/excel_info.go

@@ -45,6 +45,10 @@ func (this *ExcelInfoController) GetTableDetail() {
 	fromScene, _ := this.GetInt("FromScene", 0)
 	key := utils.HZ_CHART_LIB_EXCEL_TABLE_DETAIL + ":" + uniqueCode
 	resp := new(response.ExcelTableDetailResp)
+	switch fromScene {
+	case 1, 2:
+		fromScene = 2
+	}
 
 	//判断是否有缓存
 	//if utils.Re == nil {
@@ -241,7 +245,6 @@ func (this *ExcelInfoController) GetTableDetail() {
 
 	}
 
-	fromScene = 2
 	// 获取配置的字体大小
 	confName := models.FromSceneMap[fromScene]
 	if confName != `` {