mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-09-24 16:05:44 +08:00
Backend: change limits aggregation from intersection (most restrictive) to union (least restrictive) across provider instances. Since the load balancer can route to any instance, users should see the widest possible range. Add global_min/global_max precomputed by backend for quick amount buttons. Frontend: auto-disable payment methods that can't handle the entered amount, auto-switch to first available method, show warning when no method fits. Refactor: extract ChannelLimits named type, unionFloat helper to eliminate repeated min/max/daily logic, split limits code to payment_config_limits.go, replace magic strings with payment.Type* constants.