feature: added "external-premium" service-type

This commit is contained in:
vladimir.kuznetsov 2025-04-07 12:58:12 +08:00
parent 0da108e809
commit 66eb35bd31
5 changed files with 16 additions and 4 deletions

View file

@ -62,7 +62,7 @@ bool ApiSettingsController::getAccountInfo(bool reload)
QByteArray responseBody;
if (apiUtils::getConfigType(serverConfig) == apiDefs::ConfigType::AmneziaPremiumV2) {
if (apiUtils::isPremiumServer(serverConfig)) {
ErrorCode errorCode = gatewayController.post(QString("%1v1/account_info"), apiPayload, responseBody);
if (errorCode != ErrorCode::NoError) {
emit errorOccurred(errorCode);