From 0eef9b77e93cf937ab28555aa7b6877ca1cd7eb8 Mon Sep 17 00:00:00 2001 From: huangjuajun <102564160@qq.com> Date: Mon, 30 May 2022 10:26:12 +0800 Subject: [PATCH] add Reverse:for v1.0.1 --- go.mod | 12 ++++++------ pay/pay_by_own.go | 4 +++- 2 files changed, 9 insertions(+), 7 deletions(-) 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"],