event type string
This commit is contained in:
@ -21,7 +21,7 @@ async fn event_rcv_handle(
|
|||||||
None => String::from("未知事件类型"),
|
None => String::from("未知事件类型"),
|
||||||
Some(name) => name.to_string(),
|
Some(name) => name.to_string(),
|
||||||
};
|
};
|
||||||
let _ = reqwest::get(format!("https://www.feishu.cn/flow/api/trigger-webhook/31f13dead0bf78fc4bdb51ba23abba9f?title={}&content={}", event_type, event.happen_time)).await;
|
let _ = reqwest::get(format!("https://www.feishu.cn/flow/api/trigger-webhook/31f13dead0bf78fc4bdb51ba23abba9f?title={}&content=发生时间:{}", event_type, event.happen_time)).await;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Ok(String::from("success"))
|
Ok(String::from("success"))
|
||||||
|
Reference in New Issue
Block a user