fix(currency): initialize exchange rate to 0 and improve error logging in purchase checkout
This commit is contained in:
@@ -24,7 +24,7 @@ func Currency(ctx *svc.ServiceContext) {
|
||||
AccessKey string
|
||||
}{}
|
||||
tool.SystemConfigSliceReflectToStruct(currency, &configs)
|
||||
|
||||
ctx.ExchangeRate = 0 // Default exchange rate to 0
|
||||
ctx.Config.Currency = config.Currency{
|
||||
Unit: configs.CurrencyUnit,
|
||||
Symbol: configs.CurrencySymbol,
|
||||
|
||||
Reference in New Issue
Block a user