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-01-31 03:58:01 +08:00
2026-01-30 16:45:04 +08:00
2026-02-03 08:45:13 +08:00
2026-01-01 01:43:20 +08:00
2026-01-18 16:10:54 +08:00
2026-01-30 08:14:52 +08:00
2026-02-03 14:25:30 +08:00
2026-02-02 22:06:37 +08:00
2026-02-03 14:25:30 +08:00
2026-01-31 03:58:01 +08:00
2026-01-26 10:21:41 +08:00
2026-01-16 17:05:49 +08:00