1、查询服务余额重新计算

This commit is contained in:
2025-09-02 17:03:37 +08:00
parent ab61808bf1
commit 0f084e1461

View File

@ -167,7 +167,7 @@ func (e SmsServices) GetList(resp *[]dto.SmsServicesGetListResp) error {
e.Log.Errorf("浮动百分比为0,或者是转换错误 %s", config.ConfigValue)
}
respItem.RenewLongPrice = respItem.LongPrice.Mul(decimal.NewFromInt(100).Add(premium).Div(decimal.NewFromInt(100))).Truncate(2)
respItem.RenewLongPrice = respItem.RenewLongPrice.Mul(decimal.NewFromInt(100).Add(premium).Div(decimal.NewFromInt(100))).Truncate(2)
}
case global.SmsPlatformTextVerified:
if config, ok := mapConfigs["number_premium_textverified"]; ok {
@ -197,7 +197,7 @@ func (e SmsServices) GetList(resp *[]dto.SmsServicesGetListResp) error {
e.Log.Errorf("浮动百分比为0,或者是转换错误 %s", config.ConfigValue)
}
respItem.RenewLongPrice = respItem.LongPrice.Mul(decimal.NewFromInt(100).Add(premium).Div(decimal.NewFromInt(100))).Truncate(2)
respItem.RenewLongPrice = respItem.RenewLongPrice.Mul(decimal.NewFromInt(100).Add(premium).Div(decimal.NewFromInt(100))).Truncate(2)
}
}