mirai-cpp icon indicating copy to clipboard operation
mirai-cpp copied to clipboard

有关VoiceMessage的问题

Open Numendacil opened this issue 2 years ago • 1 comments

虽然 commit https://github.com/cyanray/mirai-cpp/commit/c8f668dc0f736f0470c2a425217eeaaafcb20f18 修复了相关的代码,但是貌似这个commit https://github.com/cyanray/mirai-cpp/commit/625b96a20b7591314d0e8ec625cef159e9bdf2a2 又把有问题的部分加回来了

在VoiceMessage.hpp的ToJson()函数中 json result = { { "type", type_ }, { "voiceId", voiceId_.empty() ? nullptr : voiceId_ }, { "url", url_.empty() ? nullptr : url_ }, { "path", path_.empty() ? nullptr : path_ }, { "base64", base64_.empty() ? nullptr : base64_ }, { "length", length_ } }; 应改为 json result = { { "type", type_ }, { "length", length_ } };

Numendacil avatar May 11 '22 15:05 Numendacil

完了,怎么会这样呢……

cyanray avatar May 12 '22 05:05 cyanray

#155

Numendacil avatar Oct 30 '22 08:10 Numendacil