Browse Source

Merge branch 'eta/2.4.5' into debug

Roc 2 months ago
parent
commit
0403973616
2 changed files with 4 additions and 3 deletions
  1. 2 2
      controllers/chart_common.go
  2. 2 1
      controllers/excel_info.go

+ 2 - 2
controllers/chart_common.go

@@ -87,8 +87,8 @@ func (this *ChartController) CommonChartInfoDetailFromUniqueCode() {
 			return
 		}
 
-		key := fmt.Sprint(utils.CACHE_CHART_AUTH, `chart:`, authToken)
-		redisChartCode, err := utils.Rc.RedisString(key)
+		tmpKey := fmt.Sprint(utils.CACHE_CHART_AUTH, authToken)
+		redisChartCode, err := utils.Rc.RedisString(tmpKey)
 		if err != nil {
 			br.Ret = 200
 			br.Success = true

+ 2 - 1
controllers/excel_info.go

@@ -83,7 +83,8 @@ func (this *ExcelInfoController) GetTableDetail() {
 			return
 		}
 
-		redisChartCode, err := utils.Rc.RedisString(authToken)
+		tmpKey := fmt.Sprint(utils.CACHE_CHART_AUTH, authToken)
+		redisChartCode, err := utils.Rc.RedisString(tmpKey)
 		if err != nil {
 			br.Ret = 200
 			br.Success = true