diff --git a/README.md b/README.md index e3af16a..c1e5dd1 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,11 @@ rust 项目代码 移步这里——<https://github.com/360quake/quake_rs/> ## 更新日志 +- 2022-10-02 v2.0.2: + + - 修复search空格被吃掉的问题 + - 增加命令后颜色输出 + - 2022-09-28 v2.0.1: - 优化代码,更换即将弃用的函数 diff --git a/utils/api.go b/utils/api.go index 3f05076..eac5875 100644 --- a/utils/api.go +++ b/utils/api.go @@ -14,7 +14,6 @@ import ( "encoding/json" "fmt" "github.com/fatih/color" - "strings" ) func FilterableServiceGET(token string) { @@ -49,7 +48,7 @@ func SearchServicePost(reqjson Reqjson, token string) string { // fmt.Println(tmp) reqjson.Query = tmp } else { - reqjson.Query = strings.ReplaceAll(reqjson.Query, " ", "") + //reqjson.Query = strings.ReplaceAll(reqjson.Query, " ", "") if reqjson.Query == "" || reqjson.Query == "?" { // fmt.Println("No query specified") // return @@ -138,7 +137,7 @@ func HostSearchPost(reqjson Reqjson, token string) string { // fmt.Println(tmp) reqjson.Query = tmp } else { - reqjson.Query = strings.ReplaceAll(reqjson.Query, " ", "") + //reqjson.Query = strings.ReplaceAll(reqjson.Query, " ", "") if reqjson.Query == "" || reqjson.Query == "?" { // fmt.Println("No query specified") panic("No query specified")