diff --git a/docs/src/update_logs.md b/docs/src/update_logs.md index dedf4c4..5f89239 100644 --- a/docs/src/update_logs.md +++ b/docs/src/update_logs.md @@ -22,6 +22,19 @@ - [![Readme-gitee](https://img.shields.io/badge/Readme-中文(点我!)-blue.svg?style=flat-square)](../../README.md) - Using [SemVer 2.0.0](https://semver.org/) to manage version +## 20230301 DR `0.7.1.4` + DR_rs `0.2.5.4/5` + +### DR_rs V 0.2.5.5 + +- 完成了 `SR1PartType` 和 `RawPartType` 的数据转换方法 + - 修复了 `Rcs` 字段 实际上检测的是 `Tank` 的问题 + - Complete the data conversion method of `SR1PartType` and `RawPartType` + - Fix the problem that the actual detection of `Rcs` field is `Tank` + +### DR_rs V 0.2.5.4 + +- 完善了 `SR1PartType` 和 `RawPartType` 的转换 + ## 20230326 DR `0.7.1.3` + DR_rs `0.2.5.3` + API `0.0.0.1` + 13 ### 内部协议 13 diff --git a/libs/Difficult_Rocket_rs/src/src/sr1_data.rs b/libs/Difficult_Rocket_rs/src/src/sr1_data.rs index abb87fb..b19ff85 100644 --- a/libs/Difficult_Rocket_rs/src/src/sr1_data.rs +++ b/libs/Difficult_Rocket_rs/src/src/sr1_data.rs @@ -225,7 +225,7 @@ pub mod part_list { pub tank: Option, #[serde(rename = "Engine")] pub engine: Option, - #[serde(rename = "Tank")] + #[serde(rename = "Rcs")] pub rcs: Option, #[serde(rename = "Solar")] pub solar: Option, @@ -309,6 +309,7 @@ pub mod part_list { pub fn to_sr_part_list(&self, name: Option) -> SR1PartList { let mut part_list = Vec::new(); for part_data in self.part_types.iter() { + println!("{}", part_data.id.to_string()); part_list.push(part_data.to_sr_part_type()); } SR1PartList { types: part_list, name: name.unwrap_or("".to_string()) }