fix(currency): initialize exchange rate to 0 and improve error logging in purchase checkout

This commit is contained in:
Chang lue Tsen
2026-01-07 09:35:52 -05:00
parent 58caa497c3
commit 7d84cf858b
3 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -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,