修复 ChatGPT Web 生图发起即扣额度

This commit is contained in:
Codex
2026-05-24 18:50:14 +08:00
parent 14b182d09b
commit 66837b7d7f
7 changed files with 207 additions and 51 deletions
@@ -325,7 +325,7 @@ fn is_legacy_chatgpt_web_free_default_limit_value(
if (value - 25.0).abs() > f64::EPSILON {
return false;
}
remaining.is_some_and(|remaining| remaining < value)
remaining.is_none_or(|remaining| remaining < value)
}
pub(crate) fn quota_exhausted_from_bucket(bucket: &Map<String, Value>) -> bool {