fix(billing): 火山方舟视频 - 恢复 Token 计费配置

This commit is contained in:
MasterChiefCN committed 2026-08-24 09:47:38 +08:00
1 parent af41893678
commit acd5e7badf
7 files changed
+61 -13

No files matched your search

+1 -1
View File
@@ -144,7 +144,7 @@ func (s *Service) sanitizeChannelModel(cm *model.ChannelModel) PublicChannelMode
// 转换为公开的价格档
publicTiers := make([]PublicChannelModelPriceTier, 0, len(priceTiers))
for _, tier := range priceTiers {
if !tier.Enabled || !ValidatePriceTierPrice(&tier) {
if !tier.Enabled || !ValidatePriceTierPrice(&tier, cm.Capability, cm.Protocol) {
continue
}
publicTiers = append(publicTiers, PublicChannelModelPriceTier{