From 4aa969adc556aa541387671eea1f9ad48834b891 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 16 Nov 2024 14:05:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E5=B0=91=E6=9C=89=E7=82=B9=E6=AF=9B?= =?UTF-8?q?=E7=97=85=EF=BC=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ica-rs/src/data_struct/ica/all_rooms.rs | 2 ++ 1 file changed, 2 insertions(+) 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) {