diff --git a/go.mod b/go.mod index a4adf1b..42d0354 100644 --- a/go.mod +++ b/go.mod @@ -3,14 +3,14 @@ module code.fnuoos.com/go_rely_warehouse/zyos_go_pay.git go 1.16 require ( - code.fnuoos.com/go_rely_warehouse/zyos_go_tools.git v1.0.3 // indirect - github.com/go-pay/gopay v1.5.78 - github.com/go-redis/redis v6.15.9+incompatible + code.fnuoos.com/go_rely_warehouse/zyos_go_tools.git v1.0.3 + github.com/go-pay/gopay v1.5.78 // indirect + github.com/go-redis/redis v6.15.9+incompatible // indirect github.com/go-sql-driver/mysql v1.6.0 - github.com/gomodule/redigo/redis v0.0.1 + github.com/gomodule/redigo/redis v0.0.1 // indirect github.com/iGoogle-ink/gopay v1.5.36 - go.uber.org/zap v1.13.0 - gopkg.in/natefinch/lumberjack.v2 v2.0.0 + go.uber.org/zap v1.13.0 // indirect + gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect xorm.io/builder v0.3.10 // indirect xorm.io/xorm v1.3.0 ) diff --git a/pay/pay_by_own.go b/pay/pay_by_own.go index 14209c8..08fe3b8 100644 --- a/pay/pay_by_own.go +++ b/pay/pay_by_own.go @@ -6,10 +6,12 @@ import ( "code.fnuoos.com/go_rely_warehouse/zyos_go_tools.git/e" "code.fnuoos.com/go_rely_warehouse/zyos_go_tools.git/utils" "fmt" + "xorm.io/xorm" ) //自有支付 支付宝 -func Alipay(args map[string]string) (string, error) { +func Alipay(eg *xorm.Engine, args map[string]string) (string, error) { + args = OwnCustomAlipayConfig(eg, args) var paySet = &md.PayData{ PayAppCertSn: args["pay_app_cert_sn"], PayAlipayRootCertSn: args["pay_alipay_root_cert_sn"],