From c2a7dd295bf40e6e0179cf3c0b39cc5aa59613dd Mon Sep 17 00:00:00 2001 From: go_rely_warehouse <> Date: Fri, 17 May 2024 07:51:59 +0000 Subject: [PATCH] Initial commit --- .gitignore | 46 ++++++++++++++++++++++++++++++++++++++++++++++ LICENSE | 0 README.md | 0 go.mod | 5 +++++ main.go | 18 ++++++++++++++++++ 5 files changed, 69 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md create mode 100644 go.mod create mode 100644 main.go diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9a8f686 --- /dev/null +++ b/.gitignore @@ -0,0 +1,46 @@ +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib +# Test binary, built with `go test -c` +*.test +# Output of the go coverage tool, specifically when used with LiteIDE +*.out +.idea +.vscode +*.log +.DS_Store +Thumbs.db +*.swp +*.swn +*.swo +*.swm +*.7z +*.zip +*.rar +*.tar +*.tar.gz +go.sum +/etc/cfg.yaml +images +test/test.json +etc/cfg.yml +t.json +t1.json +t2.json +t3.json +t.go +wait-for-it.sh +test.go +xorm +test.csv +nginx.conf +.devcontainer +.devcontainer/Dockerfile +.devcontainer/sources.list +/t1.go +/tmp/* +.idea/* +/.idea/modules.xml diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md 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) +}