erio
b4a42a640d
refactor: extract helpers to reduce duplication and function length in gateway billing
- Extract resolveChannelPricing to DRY the resolver pattern shared by calculateImageCost/calculateTokenCost
- Remove unnecessary IIFE wrapper and pass accountRateMultiplier as parameter
- Extract resolveBillingMode, resolveMediaType, optionalSubscriptionID to simplify buildRecordUsageLog (104→65 lines)
- Extract shouldDeductAPIKeyQuota/shouldUpdateRateLimits/shouldUpdateAccountQuota methods on postUsageBillingParams to unify duplicated billing conditions
2026-04-04 11:23:01 +08:00
..
2026-04-04 11:15:59 +08:00
2026-04-04 11:11:06 +08:00
2026-04-04 11:23:01 +08:00
2026-04-04 11:15:59 +08:00
2026-03-19 19:03:13 +08:00
2026-03-07 15:17:16 +08:00
2026-02-06 07:41:23 +08:00
2026-03-17 20:46:12 +08:00
2026-03-21 01:21:48 +08:00
2026-02-28 15:01:20 +08:00