优化: Keep-Alive/rate-limiter/dead-code清理 + deploy.sh蓝绿自动检测 + 压测文档
This commit is contained in:
@@ -52,12 +52,14 @@ impl LoginResponse {
|
||||
}
|
||||
|
||||
// 兼容旧的 TokenResponse
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug, Serialize, Clone)]
|
||||
pub struct TokenResponse {
|
||||
pub success: bool,
|
||||
pub token: String,
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
impl TokenResponse {
|
||||
pub fn new(token: String) -> Self {
|
||||
Self {
|
||||
@@ -345,11 +347,16 @@ pub struct AppState {
|
||||
pub jwt_secret: String,
|
||||
pub wechat_appid: String,
|
||||
pub wechat_secret: String,
|
||||
#[allow(dead_code)]
|
||||
pub free_user_data_limit: i32,
|
||||
// ===== 支付宝配置 =====
|
||||
#[allow(dead_code)]
|
||||
pub alipay_app_id: Option<String>,
|
||||
#[allow(dead_code)]
|
||||
pub alipay_private_key: Option<String>,
|
||||
#[allow(dead_code)]
|
||||
pub alipay_alipay_public_key: Option<String>,
|
||||
#[allow(dead_code)]
|
||||
pub alipay_gateway: Option<String>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user