add wx code.
Some checks failed
Deploy / Build (push) Failing after 13s

This commit is contained in:
2025-06-04 18:07:46 +08:00
parent 0c7e06f3db
commit edab6cfa30
7 changed files with 563 additions and 9 deletions

View File

@ -51,6 +51,13 @@ Application::Application() : m_d{new ApplicationPrivate()} {
m_database->open(m_settings->sqlitePath());
m_sessionStore = Singleton<SessionStore>::construct(*m_ioContext->ioContext());
// clang-format off
m_messageManager->subscribe<RegisterUrlHandler>([this](std::string_view url, RequestHandler handler) {
LOG(info)<<"register url: "<<url;
m_d->router->insert(url, handler);
});
// clang-format on
m_corporationContext = Singleton<WeChat::Corporation::Context>::construct(*m_ioContext->ioContext());
m_corporationContext->start();