diff --git a/WeChatFerry/spy/fill_response.h b/WeChatFerry/spy/fill_response.h index 2cf1ddb..f4e19c0 100644 --- a/WeChatFerry/spy/fill_response.h +++ b/WeChatFerry/spy/fill_response.h @@ -1,7 +1,10 @@ #pragma once +#include #include +#include "wcf.pb.h" + #include "log.hpp" #include "pb_encode.h" #include "pb_types.h" @@ -43,7 +46,7 @@ template bool fill_response(uint8_t *o auto it = rpc_function_map.find(FuncType); if (it == rpc_function_map.end()) { - LOG_ERROR("Unknown function type: {}", FuncType); + LOG_ERROR("Unknown function type: {}", magic_enum::enum_name(rsp.func)); return false; } rsp.which_msg = it->second;