From f3863b12653fc47996073710b56e792de0be4c8d Mon Sep 17 00:00:00 2001
From: sunty <1172534965@qq.com>
Date: 星期二, 25 六月 2019 17:57:05 +0800
Subject: [PATCH] 根据新索引结构修改算法和接口

---
 extend/esutil/EsClient.go |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/extend/esutil/EsClient.go b/extend/esutil/EsClient.go
index 20f3fa7..79ece4f 100644
--- a/extend/esutil/EsClient.go
+++ b/extend/esutil/EsClient.go
@@ -9,7 +9,6 @@
 	"log"
 	"mime/multipart"
 	"net/http"
-	"strconv"
 	"strings"
 	"time"
 
@@ -46,11 +45,11 @@
 		for _, value := range dat["hits"].([]interface{}) {
 			source := value.(map[string]interface{})["_source"].(map[string]interface{})
 			source["id"] = value.(map[string]interface{})["_id"]
-			sdkType := source["sdkType"]
+			/*sdkType := source["sdkType"]
 			if sdkType != nil {
 				sdk, _ := strconv.Atoi(sdkType.(string))
 				source["sdkType"] = sdkTypeToValue(sdk)
-			}
+			}*/
 			sources = append(sources, source)
 		}
 		data["datalist"] = sources
@@ -62,10 +61,10 @@
 }
 
 //sdk绫诲瀷
-func sdkTypeToValue(i int) string {
+/*func sdkTypeToValue(i int) string {
 	value := []string{"浜鸿劯", "杞﹁締", "浜轰綋", "鍏ヤ镜", "鎷ユ尋", "闈犲彸琛�", "浜哄憳寮傚父", "涓綋闈欐"}
 	return value[i-1]
-}
+}*/
 
 func PutEsDataReq(url string, parama string) (map[string]interface{}, error) {
 	//fmt.Println("es 鏌ヨ璇锋眰璺緞" + url) //  閰嶇疆淇℃伅 鑾峰彇

--
Gitblit v1.8.0