fix(config): 移除代码中的 app_version 引用,完成版本管理统一

- config.rs: 移除 AppConfig.app_version 字段和日志输出
- main.rs: 移除 APP_VERSION 环境变量设置
- models.rs: 移除 AppState.app_version 字段

版本号现统一使用 Cargo.toml 中的 env!("CARGO_PKG_VERSION")
This commit is contained in:
2026-04-19 20:50:56 +08:00
parent a91948a18c
commit 9974bfbf58
3 changed files with 1 additions and 10 deletions

View File

@@ -112,7 +112,6 @@ async fn main() -> std::io::Result<()> {
std::env::set_var("SSL_CERT_PATH", &app_config.ssl_cert_path);
std::env::set_var("RUST_LOG", &app_config.rust_log);
std::env::set_var("FREE_USER_DATA_LIMIT", app_config.free_user_data_limit.to_string());
std::env::set_var("APP_VERSION", &app_config.app_version);
}
// 初始化文件日志JSON 格式,带轮转)