From 1a0749f12f52db0bbb836aead1e13eb4f6077b42 Mon Sep 17 00:00:00 2001 From: zqm Date: Thu, 9 Apr 2026 16:43:42 +0800 Subject: [PATCH] =?UTF-8?q?[AllFile]=20=E8=AF=B7=E6=B1=82=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=20sticker/app=5Fconfig.json=20=E8=BF=99=E4=B8=AA?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E4=B8=8D=E9=9C=80=E8=A6=81=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E3=80=82=20=E9=87=8D=E7=94=B3=E4=B8=80=E4=B8=8B=EF=BC=8C?= =?UTF-8?q?=E6=89=80=E6=9C=89=E5=8F=91=E9=80=81=E6=B6=88=E6=81=AF=E5=92=8C?= =?UTF-8?q?=E6=94=B6=E5=88=B0=E6=B6=88=E6=81=AF=E9=83=BD=E5=BA=94=E8=AF=A5?= =?UTF-8?q?=E6=9C=89=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Windows/CS/Framework4.0/Updater/src/main.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Windows/CS/Framework4.0/Updater/src/main.rs b/Windows/CS/Framework4.0/Updater/src/main.rs index 96c97cb..d30c48c 100644 --- a/Windows/CS/Framework4.0/Updater/src/main.rs +++ b/Windows/CS/Framework4.0/Updater/src/main.rs @@ -826,9 +826,8 @@ fn request_download_for_app( r#"{{"Type":"DownloadFile","Data":{{"filename":"{}","offset":{}}}}}"#, relative_path, offset ); - // let ts = chrono::Local::now().format("%Y-%m-%d %H:%M:%S%.3f"); - // log_print!("{} [应用] 请求下载: {} (offset {})", ts, relative_path, offset); - // log_print!("{} 发送消息:{}", ts, msg_str); + let ts = chrono::Local::now().format("%Y-%m-%d %H:%M:%S%.3f"); + log_print!("{} 发送消息:{}", ts, msg_str); sender.send(msg_str); } @@ -1785,8 +1784,7 @@ async fn run_updater(debug_mode: bool) -> bool { } if let Ok(_) = File::create(&tmp_path) { log_print!("{} [AllFile] 创建空 tmp 文件: {}", ts, tmp_filename); - // 为这个正式文件发送下载请求 - log_print!("{} [AllFile] 请求下载 {}", ts, filename); + // 为这个正式文件发送下载请求(函数内部会记录发送消息日志) request_download_for_app(&sender, filename, 0); update_performed_clone2.store(true, std::sync::atomic::Ordering::SeqCst); }