fix(home): 首页业务入口默认展示,避免回收与反馈按钮被总开关隐藏
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user