liuxiongfeng
f5884d1608
fix: jsonb_set 嵌套路径无法创建多层 key 的问题
PostgreSQL jsonb_set 在 create_if_missing=true 时无法一次性创建多层嵌套路径。
例如设置 {antigravity_quota_scopes,gemini_image} 时,如果 antigravity_quota_scopes 不存在,
jsonb_set 不会自动创建外层 key,导致更新静默失败(affected=1 但数据未变)。
修复方案:嵌套两次 jsonb_set,先确保外层 key 存在,再设置内层值。
同时在设置限流时更新 last_used_at,使刚触发 429 的账号调度优先级降低。
Cherry-picked from slovx2/sub2api: 4b57e80e
2026-02-03 14:25:30 +08:00
..
2026-02-02 20:35:00 +08:00
2026-01-30 17:28:53 +08:00
2026-02-03 14:25:30 +08:00
2026-01-30 16:45:04 +08:00
2025-12-18 13:50:39 +08:00
2026-01-11 23:00:31 +08:00
2026-01-11 23:49:03 +08:00
2026-01-07 16:35:51 +08:00
2026-01-30 08:53:53 +08:00
2026-01-26 09:19:53 +08:00
2026-01-05 13:54:43 +08:00
2025-12-29 10:03:27 +08:00