浏览代码

新增字段

WH01243 3 月之前
父节点
当前提交
e024a9fefb
共有 1 个文件被更改,包括 0 次插入9 次删除
  1. 0 9
      common/src/qfw/util/jy/subScribe.go

+ 0 - 9
common/src/qfw/util/jy/subScribe.go

@@ -187,12 +187,3 @@ func SaveUserLog(mg mongodb.MongodbSim, userid, phone, way, system, source, open
 	}
 	mg.Save("register_log", data)
 }
-
-func GetEsDetail(sid string) string {
-	r := elastic.Get("bidding", "bidding", fmt.Sprintf(`{"query":{"bool":{"must":[{"term":{"id":"%s"}}]}},"_source":["_id","detail"],"size":1}`, sid))
-	detail := ""
-	if len(*r) > 0 {
-		detail = gconv.String((*r)[0]["detail"])
-	}
-	return detail
-}