fix: 修复图片模型会员标识判断逻辑

将 IsPremiumPackage 的判断从使用 PremiumPackageConst.ModeIds 改为直接读取模型的 IsPremium 属性,避免因配置不一致导致会员标识错误。
This commit is contained in:
ccnetcore
2026-01-03 01:46:40 +08:00
parent e39cbaf5e7
commit 28cdc29369

View File

@@ -348,7 +348,7 @@ public class AiImageService : ApplicationService
ModelName = x.Name,
ModelDescribe = x.Description,
Remark = x.Description,
IsPremiumPackage = PremiumPackageConst.ModeIds.Contains(x.ModelId)
IsPremiumPackage = x.IsPremium
}).ToListAsync();
return output;
}