This commit is contained in:
@ -19,6 +19,7 @@ Context::Context(boost::asio::io_context &ioContext) : m_ioContext(ioContext), m
|
||||
manager->subscribe<Older::NotifyServerChan>(
|
||||
[this](const boost::beast::http::request<boost::beast::http::string_body> &request) { notify(request); });
|
||||
}
|
||||
registerMoneyNote();
|
||||
}
|
||||
|
||||
void Context::sendMessage(MessageType type, const std::string &message) {
|
||||
@ -124,5 +125,16 @@ void Context::updateAccessToken() {
|
||||
}
|
||||
}
|
||||
|
||||
void Context::registerMoneyNote() {
|
||||
// 接口说明: https://developer.work.weixin.qq.com/document/10514
|
||||
using namespace Core;
|
||||
using namespace Older;
|
||||
using namespace boost::urls;
|
||||
auto manager = Singleton<MessageManager>::instance();
|
||||
manager->publish<RegisterUrlHandler>(
|
||||
"/api/v1/wx/moneynote",
|
||||
[this](HttpSession &session, const HttpRequest &request, const matches &matches) { LOG(info) << request.target(); });
|
||||
}
|
||||
|
||||
} // namespace Corporation
|
||||
} // namespace WeChat
|
Reference in New Issue
Block a user