file audit
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
8c86a82422
commit
b3114d4147
7 changed files with 90 additions and 25 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue