fix(admin): 管理后台 - 修复公告编辑与模型价格配置 (#355)

This commit is contained in:
Rou authored and GitHub committed 2026-08-31 06:49:38 +08:00
1 parent 2b7375f631
commit cc4aa736ff
7 files changed
+309 -128

No files matched your search

+1 -1
View File
@@ -735,7 +735,7 @@ func (r *Repository) AdminSystemChannels(keyword string, status string, limit in
func (r *Repository) AdminSystemChannelReferences() ([]model.ModelChannel, error) {
var channels []model.ModelChannel
err := r.db.Select("id", "name").Where("scope = ?", model.ChannelScopeSystem).Order("created_at asc").Find(&channels).Error
err := r.db.Select("id", "name", "enabled").Where("scope = ?", model.ChannelScopeSystem).Order("created_at asc").Find(&channels).Error
return channels, err
}