file audit

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages committed 2022-12-26 09:48:08 +08:00
1 parent 8c86a82422
commit b3114d4147
7 files changed
+90 -25

No files matched your search

+2 -2
View File
@@ -620,12 +620,12 @@ pub fn get_api_server(api: String, custom: String) -> String {
"https://admin.rustdesk.com".to_owned()
}
pub fn get_audit_server(api: String, custom: String) -> String {
pub fn get_audit_server(api: String, custom: String, typ: String) -> String {
let url = get_api_server(api, custom);
if url.is_empty() || url.contains("rustdesk.com") {
return "".to_owned();
}
format!("{}/api/audit", url)
format!("{}/api/audit/{}", url, typ)
}
pub async fn post_request(url: String, body: String, header: &str) -> ResultType<String> {