diff --git a/src/HttpServer/logic/httpserver.go b/src/HttpServer/logic/httpserver.go index 4a09e8e..057435a 100644 --- a/src/HttpServer/logic/httpserver.go +++ b/src/HttpServer/logic/httpserver.go @@ -24,9 +24,12 @@ func StartHttpServe() { startServerHttpServe() } +type TestTes struct { + TestInt int +} //just for test -func Testsendhttp() { - +func (d *TestTes)Testsendhttp() { + d.TestInt = 99 } func CheckErr(err error) { diff --git a/src/HttpServer/main/main.go b/src/HttpServer/main/main.go index 6813739..89c5947 100644 --- a/src/HttpServer/main/main.go +++ b/src/HttpServer/main/main.go @@ -67,7 +67,10 @@ func main() { go logic.StartHttpServe() go logic.StartHttpTicker() //time.Sleep(time.Duration(2) * time.Second) - //logic.Testsendhttp() + test := new(logic.TestTes) + test.TestInt=3 + test.Testsendhttp() + logger.Info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Test =%v",test) select { -- libgit2 0.21.0