From 0f084e14619df500ca0ebfa9a07af487563d0884 Mon Sep 17 00:00:00 2001 From: hucan <951870319@qq.com> Date: Tue, 2 Sep 2025 17:03:37 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E6=9F=A5=E8=AF=A2=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E4=BD=99=E9=A2=9D=E9=87=8D=E6=96=B0=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/service/sms_services.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } }