更新密码找回uniapp

This commit is contained in:
hero920103 committed 2026-11-16 17:22:50 +08:00
1 parent 7f9a66da0f
commit 3fdda89833
1304 files changed
+3503 -26132

No files matched your search

+4 -5
View File
@@ -56,16 +56,15 @@ func TestNormalizePlatforms(t *testing.T) {
}
}
// 模块级过滤:覆盖三种业务场景
func TestFilterModulesByPlatform(t *testing.T) {
web := `["web"]`
app := `["app"]`
both := `["web","app"]`
rows := []models.SystemModules{
{Code: "crm", Platforms: &web}, // 仅 Web
{Code: "oa", Platforms: &app}, // 仅小程序
{Code: "cms", Platforms: &both}, // 双端
{Code: "erp", Platforms: nil}, // 未配置 → 全端
{Code: "crm", Platforms: &web},
{Code: "oa", Platforms: &app},
{Code: "cms", Platforms: &both},
{Code: "erp", Platforms: nil},
}
got := FilterModulesByPlatform(rows, models.PlatformWeb)