add:添加短链接服务
Build docker and publish / build (20.15.1) (push) Has been cancelled

This commit is contained in:
2026-01-24 00:32:08 -08:00
parent a98fcbfe73
commit 1d81df6664
51 changed files with 2957 additions and 621 deletions
+8
View File
@@ -32,9 +32,17 @@ func (l *RateLogic) ProcessTask(ctx context.Context, _ *asynq.Task) error {
CurrencyUnit string
CurrencySymbol string
AccessKey string
FixedRate float64
}{}
tool.SystemConfigSliceReflectToStruct(currency, &configs)
// Check if fixed rate is enabled (greater than 0)
if configs.FixedRate > 0 {
l.svcCtx.ExchangeRate = configs.FixedRate
logger.WithContext(ctx).Infof("[RateLogic] Use Fixed Exchange Rate: %f", configs.FixedRate)
return nil
}
// Skip conversion if no exchange rate API key configured
if configs.AccessKey == "" {
logger.Debugf("[RateLogic] skip exchange rate, no access key configured")