mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-09-24 16:05:44 +08:00
Previously gwRefund used registry.GetProvider(paymentType) which returns an arbitrary instance for that type. When multiple instances share the same payment type (e.g., two EasyPay merchants both supporting alipay), the refund would be sent to the wrong merchant. Now getRefundProvider() reads the order's ProviderInstanceID, loads that instance's config, and creates the correct provider. Falls back to registry lookup for legacy orders without an instance ID. chore: bump version to 0.1.108.142