瀏覽代碼

Merge branch 'feature/eta2.6.5_kpler' into debug

xyxie 1 周之前
父節點
當前提交
030d565141
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      services/base_from_kpler.go

+ 2 - 2
services/base_from_kpler.go

@@ -54,14 +54,14 @@ func getKplerDataByApi(params models.KplerSearchEdbReq, serverUrl string) (list
 	fromZoneNamesStr := params.FromZoneNames
 	toZoneNamesStr := params.ToZoneNames
 	
-	//granularity := GetKplerGranularity(params.Granularity)
+	granularity := GetKplerGranularity(params.Granularity)
 	libreq := new(models.KplerFlowDataLibReq)
 	libreq.Products = productNamesStr
 	libreq.FromZones = fromZoneNamesStr
 	libreq.ToZones = toZoneNamesStr
 	libreq.Split = params.Split
 	libreq.FlowDirection = params.FlowDirection
-	libreq.Granularity = params.Granularity
+	libreq.Granularity = granularity
 	libreq.Unit = params.Unit
 	libreq.WithIntraRegion = "true"
 	libreq.WithForecast = "true"