feat(): 添加待审核
This commit is contained in:
@@ -52,7 +52,7 @@ fn handle_callback_request(app_handle: &tauri::AppHandle, mut stream: std::net::
|
||||
|
||||
let (action, body) = if request.contains("GET /postpone") {
|
||||
let _ = app_handle.emit("notification-action", "postpone_1h");
|
||||
("postpone", simple_page("已推迟1小时,监控将在1小时后恢复"))
|
||||
("postpone", simple_page("已推迟1小时,监测将在1小时后恢复"))
|
||||
} else if request.contains("GET /handle") {
|
||||
let _ = app_handle.emit("notification-action", "go_handle");
|
||||
("handle", redirect_page("https://crm.yunvip123.com/index.html"))
|
||||
|
||||
@@ -18,7 +18,7 @@ fn xml_escape(s: &str) -> String {
|
||||
/// 发送带交互按钮的 Toast 通知
|
||||
///
|
||||
/// - 点击消息体 → 关闭通知(非打包应用不支持 foreground 激活)
|
||||
/// - 点击"推迟1小时" → 通过 localhost 回调暂停监控并弹出应用窗口
|
||||
/// - 点击"推迟1小时" → 通过 localhost 回调暂停监测并弹出应用窗口
|
||||
/// - 点击"去处理" → 直接打开 CRM 网站
|
||||
#[cfg(target_os = "windows")]
|
||||
pub fn send_interactive_toast(
|
||||
|
||||
Reference in New Issue
Block a user