From 1c65ec90ada63c90abfa33eff2ec69d0edd79e15 Mon Sep 17 00:00:00 2001 From: Changhua Date: Mon, 22 May 2023 14:47:26 +0800 Subject: [PATCH] Impl is_login --- spy/load_calls.cpp | 4 ++-- spy/rpc_server.cpp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/spy/load_calls.cpp b/spy/load_calls.cpp index b0c0bc5..6da3af7 100644 --- a/spy/load_calls.cpp +++ b/spy/load_calls.cpp @@ -3,9 +3,9 @@ #include "load_calls.h" -#define SUPPORT_VERSION L"3.7.0.30" +#define SUPPORT_VERSION L"3.9.2.23" WxCalls_t wxCalls = { - 0x2366538, // Login Status + 0x2FFD638, // Login Status { 0x236607C, 0x23660F4, 0x2366128, 0x2386F7C }, // User Info: wxid, nickname, mobile, home 0x521D30, // Send Message /* Receive Message: diff --git a/spy/rpc_server.cpp b/spy/rpc_server.cpp index fd8790f..814efbe 100644 --- a/spy/rpc_server.cpp +++ b/spy/rpc_server.cpp @@ -549,6 +549,7 @@ static bool dispatcher(uint8_t *in, size_t in_len, uint8_t *out, size_t *out_len ret = func_is_login(out, out_len); break; } +#if 0 case Functions_FUNC_GET_SELF_WXID: { LOG_DEBUG("[Functions_FUNC_GET_SELF_WXID]"); ret = func_get_self_wxid(out, out_len); @@ -639,6 +640,7 @@ static bool dispatcher(uint8_t *in, size_t in_len, uint8_t *out, size_t *out_len ret = func_decrypt_image(req.msg.dec.src, req.msg.dec.dst, out, out_len); break; } +#endif default: { LOG_ERROR("[UNKNOW FUNCTION]"); break;