Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
admpub committed Apr 14, 2021
1 parent db61c90 commit 32c0b85
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (c *Account) FromStore(v echo.Store) *Account {
tmp[currency] = struct{}{}
}
}
options := v.Store(`options`)
options := v.GetStore(`options`)
c.Options.IconClass = options.String(`iconClass`)
c.Options.IconImage = options.String(`iconImage`)
c.Options.Title = options.String(`title`)
Expand Down
2 changes: 1 addition & 1 deletion driver/wechat/wechat.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (a *Wechat) Pay(ctx echo.Context, cfg *config.Pay) (*config.PayResponse, er
wxParams[`time_expire`] = cfg.ExpiredAt.Format(`20060102150405`)
}
if cfg.Options != nil {
params := cfg.Options.Store(`params`)
params := cfg.Options.GetStore(`params`)
for k := range params {
wxParams[k] = params.String(k)
}
Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ require (
github.com/admpub/humanize v0.0.0-20190501023926-5f826e92c8ca // indirect
github.com/admpub/log v0.0.1
github.com/admpub/mugglepay v0.0.7
github.com/goccy/go-json v0.4.11 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/objcoding/wxpay v1.0.6
github.com/qingwg/payjs v0.0.0-20190928033402-c53dbe16b371
Expand All @@ -18,7 +19,7 @@ require (
github.com/webx-top/captcha v0.0.0-20161202061115-29e9e7f30aa0 // indirect
github.com/webx-top/codec v0.0.0-20200914105801-3782d81a0302
github.com/webx-top/com v0.0.7
github.com/webx-top/echo v2.7.9+incompatible
github.com/webx-top/echo v2.9.0+incompatible
github.com/webx-top/tagfast v0.0.0-20161020041435-9a2065ce3dd2 // indirect
github.com/webx-top/validation v0.0.1 // indirect
)

0 comments on commit 32c0b85

Please sign in to comment.