mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-09-24 16:05:44 +08:00
Backend (matching sub2apipay behavior): - UpdateProviderInstance: block credential changes (key/secret/password fields) when instance has PENDING/PAID/RECHARGING orders (409 Conflict) - DeleteProviderInstance: block deletion when pending orders exist (409) - DeletePlan: block deletion when pending orders exist (409) - Non-credential changes (name/enabled/sort) still allowed with pending orders Frontend: - Filter empty config values before sending (avoid overwriting existing credentials when editing a provider without re-entering all secrets)