on_publish hook新增originType字段

This commit is contained in:
ziyue
2022-03-02 18:03:44 +08:00
parent 4af83cbe7c
commit d88fe077ed
6 changed files with 7 additions and 5 deletions

View File

@@ -277,6 +277,8 @@ void installWebHook(){
body["ip"] = sender.get_peer_ip();
body["port"] = sender.get_peer_port();
body["id"] = sender.getIdentifier();
body["originType"] = (int) type;
body["originTypeStr"] = getOriginTypeString(type);
//执行hook
do_http_hook(hook_publish,body,[invoker](const Value &obj,const string &err){
if(err.empty()){