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

@@ -337,7 +337,6 @@ pub struct AppState {
pub wechat_appid: String,
pub wechat_secret: String,
pub free_user_data_limit: i32,
pub app_version: String,
}
impl AppState {
@@ -352,8 +351,6 @@ impl AppState {
free_user_data_limit: std::env::var("FREE_USER_DATA_LIMIT")
.map(|v| v.parse().unwrap_or(20))
.unwrap_or(20),
app_version: std::env::var("APP_VERSION")
.unwrap_or_else(|_| "unknown".to_string()),
})
}
}