Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
admpub committed Apr 30, 2022
1 parent 55a5972 commit f23e872
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion driver/wechat/wechat.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ func (a *Wechat) RefundNotify(ctx echo.Context) error {
return fmt.Errorf(`base64decode(%v): %v`, reqInfo, err)
}
key := strings.ToLower(com.Md5(a.account.AppSecret))
crypto := codec.NewAesECBCrypto(`AES-256`)
crypto := codec.NewAESECB(`AES-256`)
b = crypto.DecodeBytes(b, []byte(key))
for k, v := range XmlToMap(string(b)) {
resp[k] = v
Expand Down
25 changes: 14 additions & 11 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,34 @@ module github.com/webx-top/payment
go 1.16

require (
github.com/admpub/alipay/v3 v3.0.1
github.com/admpub/alipay/v3 v3.0.2
github.com/admpub/copier v0.0.2 // indirect
github.com/admpub/decimal v1.3.1
github.com/admpub/events v1.2.0 // indirect
github.com/admpub/events v1.3.2 // indirect
github.com/admpub/fsnotify v1.5.0 // indirect
github.com/admpub/go-reuseport v0.0.4 // indirect
github.com/admpub/humanize v0.0.0-20190501023926-5f826e92c8ca // indirect
github.com/admpub/log v1.3.2
github.com/admpub/mugglepay v0.0.8
github.com/admpub/realip v0.0.0-20210421084339-374cf5df122d // indirect
github.com/admpub/resty/v2 v2.7.0
github.com/goccy/go-json v0.7.10 // indirect
github.com/goccy/go-json v0.9.7 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/mattn/go-colorable v0.1.11 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/objcoding/wxpay v1.0.6
github.com/onsi/ginkgo v1.16.5 // indirect
github.com/onsi/gomega v1.19.0 // indirect
github.com/qingwg/payjs v0.0.0-20190928033402-c53dbe16b371
github.com/smartwalle/paypal v1.0.1
github.com/webx-top/captcha v0.0.0-20161202061115-29e9e7f30aa0 // indirect
github.com/webx-top/codec v0.1.1
github.com/webx-top/com v0.3.3
github.com/webx-top/echo v2.22.19+incompatible
github.com/webx-top/codec v0.2.0
github.com/webx-top/com v0.3.9
github.com/webx-top/echo v2.26.5+incompatible
github.com/webx-top/poolx v0.0.0-20210912044716-5cfa2d58e380 // indirect
github.com/webx-top/validation v0.0.3 // indirect
golang.org/x/crypto v0.0.0-20211117183948-ae814b36b871 // indirect
golang.org/x/net v0.0.0-20211118161319-6a13c67c3ce4 // indirect
golang.org/x/sys v0.0.0-20211117180635-dee7805ff2e1 // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/crypto v0.0.0-20220427172511-eb4f295cb31f // indirect
golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
golang.org/x/sys v0.0.0-20220429233432-b5fbb4746d32 // indirect
)

0 comments on commit f23e872

Please sign in to comment.