getAllSession接口返回完整可读类名

This commit is contained in:
xiongziliang
2022-06-11 15:03:28 +08:00
parent 926e78272c
commit 84d0d1db19
2 changed files with 2 additions and 2 deletions

View File

@@ -783,7 +783,7 @@ void installWebApi() {
jsession["local_ip"] = session->get_local_ip();
jsession["local_port"] = session->get_local_port();
jsession["id"] = id;
jsession["typeid"] = typeid(*session).name();
jsession["typeid"] = toolkit::demangle(typeid(*session).name());
val["data"].append(jsession);
});
});