554325746@qq.com
2019-07-11 ac4bfc72bf9cd06e8b349a00278047c056d186ed
fix cache
1个文件已修改
16 ■■■■■ 已修改文件
dbpersoninfo.go 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
dbpersoninfo.go
@@ -7,10 +7,10 @@
    "sync"
    "encoding/base64"
    "encoding/json"
    "basic.com/pubsub/cache.git/esutil"
    "basic.com/pubsub/cache.git/shardmap"
    "test/cache/esutil"
    "test/cache/shardmap"
    "basic.com/valib/gosdk.git"
)
@@ -66,7 +66,7 @@
    fmt.Println()
}
func Getdbpersonmsg(tableid string, teststring []byte, IsCompare bool) (map[string]float32) {
func Getdbpersonmsg(tableid string, teststring []byte, IsCompare bool) ([]byte) {
    totalmap := make(map[string]float32)
@@ -99,12 +99,16 @@
       }
    }
    fmt.Println()
    fmt.Println()
    firsttime := time.Now()
    fmt.Println(time.Since(firsttime))
    return  totalmap
    buf, err := json.Marshal(totalmap)
    if err != nil {
        fmt.Println("map to json error!", err)
         return nil
    }
    return  buf
}
func Printest(ci []byte, co string ) (float32){