mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
chore: added account_info request for amfree (#1586)
This commit is contained in:
@@ -63,12 +63,10 @@ bool ApiSettingsController::getAccountInfo(bool reload)
|
|||||||
|
|
||||||
QByteArray responseBody;
|
QByteArray responseBody;
|
||||||
|
|
||||||
if (apiUtils::isPremiumServer(serverConfig)) {
|
ErrorCode errorCode = gatewayController.post(QString("%1v1/account_info"), apiPayload, responseBody);
|
||||||
ErrorCode errorCode = gatewayController.post(QString("%1v1/account_info"), apiPayload, responseBody);
|
if (errorCode != ErrorCode::NoError) {
|
||||||
if (errorCode != ErrorCode::NoError) {
|
emit errorOccurred(errorCode);
|
||||||
emit errorOccurred(errorCode);
|
return false;
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QJsonObject accountInfo = QJsonDocument::fromJson(responseBody).object();
|
QJsonObject accountInfo = QJsonDocument::fromJson(responseBody).object();
|
||||||
|
|||||||
Reference in New Issue
Block a user