Impl IsLogin
This commit is contained in:
parent
d8770487ed
commit
4bf65bb4e3
@ -6,7 +6,7 @@
|
|||||||
#define SUPPORT_VERSION L"3.9.10.19"
|
#define SUPPORT_VERSION L"3.9.10.19"
|
||||||
|
|
||||||
WxCalls_t wxCalls = {
|
WxCalls_t wxCalls = {
|
||||||
0x2FFD638, // Login Status
|
0x5AB9184, // Login Status
|
||||||
{ 0x2FFD484, 0x2FFD590, 0x2FFD500, 0x30238CC }, // User Info: wxid, nickname, mobile, home
|
{ 0x2FFD484, 0x2FFD590, 0x2FFD500, 0x30238CC }, // User Info: wxid, nickname, mobile, home
|
||||||
{ 0x768140, 0xCE6C80, 0x756960 }, // Send Message
|
{ 0x768140, 0xCE6C80, 0x756960 }, // Send Message
|
||||||
/* Receive Message:
|
/* Receive Message:
|
||||||
|
@ -51,7 +51,7 @@ static DWORD lThreadId = 0;
|
|||||||
static bool lIsRunning = false;
|
static bool lIsRunning = false;
|
||||||
static nng_socket cmdSock, msgSock; // TODO: 断开检测
|
static nng_socket cmdSock, msgSock; // TODO: 断开检测
|
||||||
static uint8_t gBuffer[G_BUF_SIZE] = { 0 };
|
static uint8_t gBuffer[G_BUF_SIZE] = { 0 };
|
||||||
#if 0
|
|
||||||
bool func_is_login(uint8_t *out, size_t *len)
|
bool func_is_login(uint8_t *out, size_t *len)
|
||||||
{
|
{
|
||||||
Response rsp = Response_init_default;
|
Response rsp = Response_init_default;
|
||||||
@ -68,7 +68,7 @@ bool func_is_login(uint8_t *out, size_t *len)
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
bool func_get_self_wxid(uint8_t *out, size_t *len)
|
bool func_get_self_wxid(uint8_t *out, size_t *len)
|
||||||
{
|
{
|
||||||
Response rsp = Response_init_default;
|
Response rsp = Response_init_default;
|
||||||
@ -850,11 +850,11 @@ static bool dispatcher(uint8_t *in, size_t in_len, uint8_t *out, size_t *out_len
|
|||||||
LOG_DEBUG("{:#04x}[{}] length: {}", (uint8_t)req.func, magic_enum::enum_name(req.func), in_len);
|
LOG_DEBUG("{:#04x}[{}] length: {}", (uint8_t)req.func, magic_enum::enum_name(req.func), in_len);
|
||||||
|
|
||||||
switch (req.func) {
|
switch (req.func) {
|
||||||
#if 0
|
|
||||||
case Functions_FUNC_IS_LOGIN: {
|
case Functions_FUNC_IS_LOGIN: {
|
||||||
ret = func_is_login(out, out_len);
|
ret = func_is_login(out, out_len);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
case Functions_FUNC_GET_SELF_WXID: {
|
case Functions_FUNC_GET_SELF_WXID: {
|
||||||
ret = func_get_self_wxid(out, out_len);
|
ret = func_get_self_wxid(out, out_len);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user