🎨 一些优化,编译试试看能不能用
This commit is contained in:
parent
56dffa2749
commit
833c3f1163
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1,3 @@
|
|||||||
|
.idea
|
||||||
|
cmake-build-debug
|
||||||
BUILD/
|
BUILD/
|
@ -76,12 +76,13 @@ const uint64_t kSnsObjectDoComment = 0x2EFD0F0;
|
|||||||
|
|
||||||
const uint64_t kStartupDownloadMedia = 0x2596780;
|
const uint64_t kStartupDownloadMedia = 0x2596780;
|
||||||
|
|
||||||
const uint64_t kDoAddMsg = 0x23D2B10;
|
// const uint64_t kDoAddMsg = 0x23D2B10;
|
||||||
|
const uint64_t kDoAddMsg = 0x2205510; // decoded msg
|
||||||
const uint64_t kJSLogin = 0x27826A0;
|
const uint64_t kJSLogin = 0x27826A0;
|
||||||
const uint64_t kTenPayTransferConfirm = 0x304C700;
|
const uint64_t kTenPayTransferConfirm = 0x304C700;
|
||||||
|
|
||||||
const uint64_t kGetBizProfileInfo = 0x21CC340;
|
const uint64_t kGetBizProfileInfo = 0x21CC340;
|
||||||
|
/
|
||||||
const uint64_t kSceneCenterStartTask = 0x2454F70; //must do scene after auth
|
const uint64_t kSceneCenterStartTask = 0x2454F70; //must do scene after auth
|
||||||
const uint64_t kMessageLoop = 0x397B400; //Chrome.MessageLoopProblem (__int64 a1, __int64 a2)
|
const uint64_t kMessageLoop = 0x397B400; //Chrome.MessageLoopProblem (__int64 a1, __int64 a2)
|
||||||
const uint64_t kWMDestroy = 0x2119240; //Message WM_DESTROY
|
const uint64_t kWMDestroy = 0x2119240; //Message WM_DESTROY
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
#include <WinSock2.h>
|
#include <WinSock2.h>
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
#include <wechat/SyncMgr.h>
|
||||||
|
|
||||||
#include "WeChatHelper.h"
|
#include "WeChatHelper.h"
|
||||||
|
|
||||||
@ -10,6 +10,10 @@ BOOL APIENTRY DllMain(HMODULE module, DWORD ul_reason_for_call, LPVOID reserved)
|
|||||||
OutputDebugString("DLL_PROCESS_ATTACH START\n");
|
OutputDebugString("DLL_PROCESS_ATTACH START\n");
|
||||||
DisableThreadLibraryCalls(module);
|
DisableThreadLibraryCalls(module);
|
||||||
lucky::WeChatHelper::GetInstance().Init(module);
|
lucky::WeChatHelper::GetInstance().Init(module);
|
||||||
|
const char *notifyUrl = std::getenv("NOTIFY_URL");
|
||||||
|
if (notifyUrl != nullptr) {
|
||||||
|
lucky::wechat::SyncMgr::GetInstance().SetMessageNotifyUrl(std::string(notifyUrl));
|
||||||
|
}
|
||||||
OutputDebugString("DLL_PROCESS_ATTACH END\n");
|
OutputDebugString("DLL_PROCESS_ATTACH END\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -29,4 +33,3 @@ BOOL APIENTRY DllMain(HMODULE module, DWORD ul_reason_for_call, LPVOID reserved)
|
|||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user