diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e69de29 diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..cdbdd9d --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module code.fnuoos.com/go_rely_warehouse/test.git + +go 1.16 + +require code.fnuoos.com/go_rely_warehouse/zyos_go_pay.git v0.2.1 diff --git a/main.go b/main.go new file mode 100644 index 0000000..58ab657 --- /dev/null +++ b/main.go @@ -0,0 +1,18 @@ +package main + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_pay.git/pay" + "fmt" +) + +func main() { + err := pay.Init("119.23.182.117:3306", "zyos_website", "root", "Fnuo123com@") + if err != nil { + fmt.Println(">>>>>>>>>>>>>>>", err) + } + channel, err := pay.JudgePayChannel("35618318", "mall") + if err != nil { + fmt.Println("<<<<<<<<<<<<<<<<", err) + } + fmt.Println(channel) +}