fixed NewMusicIntroduction
This commit is contained in:
@@ -808,11 +808,13 @@ func get(c *fiber.Ctx) error {
|
||||
"userNewMusicIntroductionMap": func() map[string]any {
|
||||
result := map[string]any{}
|
||||
if nm, ok := m["masterNewMusicIntroductionMap"].(map[string]any); ok {
|
||||
for _, v := range nm["entries"].(map[string]any) {
|
||||
item := v.(map[string]any)
|
||||
id := fmt.Sprintf("%v", item["newMusicIntroductionId"])
|
||||
result[id] = map[string]any{
|
||||
"userId": userid, "newMusicIntroductionId": item["newMusicIntroductionId"], "status": "already_read",
|
||||
if entries, ok := nm["entries"].(map[string]any); ok {
|
||||
for _, v := range entries {
|
||||
item := v.(map[string]any)
|
||||
id := fmt.Sprintf("%v", item["newMusicIntroductionId"])
|
||||
result[id] = map[string]any{
|
||||
"userId": userid, "newMusicIntroductionId": item["newMusicIntroductionId"], "status": "already_read",
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user