Browse Source

测试 支付模块

master
DengBiao 2 years ago
parent
commit
ac935a7b18
3 changed files with 23 additions and 0 deletions
  1. +0
    -0
     
  2. +5
    -0
      go.mod
  3. +18
    -0
      main.go

+ 0
- 0
View File


+ 5
- 0
go.mod View File

@@ -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

+ 18
- 0
main.go View File

@@ -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)
}

Loading…
Cancel
Save