diff --git a/ica-rs/src/data_struct/ica/all_rooms.rs b/ica-rs/src/data_struct/ica/all_rooms.rs index c48d907..d1a0a01 100644 --- a/ica-rs/src/data_struct/ica/all_rooms.rs +++ b/ica-rs/src/data_struct/ica/all_rooms.rs @@ -43,6 +43,8 @@ impl Room { // 手动 patch 一下 roomId // ica issue: https://github.com/Icalingua-plus-plus/Icalingua-plus-plus/issues/793 if parse_json.get("roomId").is_none_or(|id| id.is_null()) { + use tracing::warn; + warn!("Room::new_from_json roomId is None, patching it to -1, raw: {:#?}", raw_json); parse_json["roomId"] = JsonValue::Number(Number::from(-1)); } let inner = match serde_json::from_value::(parse_json) {