1、查询服务余额重新计算
This commit is contained in:
@ -167,7 +167,7 @@ func (e SmsServices) GetList(resp *[]dto.SmsServicesGetListResp) error {
|
|||||||
e.Log.Errorf("浮动百分比为0,或者是转换错误 %s", config.ConfigValue)
|
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:
|
case global.SmsPlatformTextVerified:
|
||||||
if config, ok := mapConfigs["number_premium_textverified"]; ok {
|
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)
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user