fixed NewMusicIntroduction

This commit is contained in:
2026-09-06 22:40:16 +08:00
parent 8415b821fc
commit caff3bfb69

View File

@@ -808,11 +808,13 @@ func get(c *fiber.Ctx) error {
"userNewMusicIntroductionMap": func() map[string]any { "userNewMusicIntroductionMap": func() map[string]any {
result := map[string]any{} result := map[string]any{}
if nm, ok := m["masterNewMusicIntroductionMap"].(map[string]any); ok { if nm, ok := m["masterNewMusicIntroductionMap"].(map[string]any); ok {
for _, v := range nm["entries"].(map[string]any) { if entries, ok := nm["entries"].(map[string]any); ok {
item := v.(map[string]any) for _, v := range entries {
id := fmt.Sprintf("%v", item["newMusicIntroductionId"]) item := v.(map[string]any)
result[id] = map[string]any{ id := fmt.Sprintf("%v", item["newMusicIntroductionId"])
"userId": userid, "newMusicIntroductionId": item["newMusicIntroductionId"], "status": "already_read", result[id] = map[string]any{
"userId": userid, "newMusicIntroductionId": item["newMusicIntroductionId"], "status": "already_read",
}
} }
} }
} }