fix(home): 首页业务入口默认展示,避免回收与反馈按钮被总开关隐藏

This commit is contained in:
yml2213
2026-10-29 11:34:39 +08:00
parent a04b1377cd
commit e57c9df6f4
4 changed files with 12 additions and 5 deletions
@@ -2,6 +2,12 @@ package systemconfig
import "testing"
func TestDefaultHomeEntriesEnabled(t *testing.T) {
if got := defaultHomeEntriesEnabledConfigValue(); got != "true" {
t.Fatalf("默认首页业务入口开关 = %q, want true", got)
}
}
func TestParseHomeEntriesEnabled(t *testing.T) {
cases := []struct {
value string
@@ -12,7 +12,8 @@ import (
const homeEntriesEnabledConfigKey = "mobile.home_entries_enabled"
func defaultHomeEntriesEnabledConfigValue() string {
return "false"
// 默认展示,保持引入总开关前的线上表现;需要隐藏时由后台开关显式关闭。
return "true"
}
func (s *Service) HomeAnnouncements(ctx context.Context) (*HomeAnnouncementsDTO, error) {