diff --git a/app/admin/service/sms_services.go b/app/admin/service/sms_services.go index 8109a44..24dd6ce 100644 --- a/app/admin/service/sms_services.go +++ b/app/admin/service/sms_services.go @@ -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) } }