soApi.go
@@ -3,7 +3,6 @@ import ( "basic.com/pubsub/protomsg.git" "encoding/json" "fmt" "strconv" ) @@ -36,7 +35,7 @@ } var res Result if err = json.Unmarshal(respBody, &res); err != nil { fmt.Println(err) logPrint(err) return soInfos } bytes, _ := json.Marshal(res.Data) @@ -53,7 +52,7 @@ } var res Result if err = json.Unmarshal(respBody, &res); err != nil { fmt.Println(err) logPrint(err) return false,nil } return res.Success,res.Data