chore: added account_info request for amfree
This commit is contained in:
parent
b457ef9a3f
commit
a331a8542a
1 changed files with 4 additions and 6 deletions
|
|
@ -62,12 +62,10 @@ bool ApiSettingsController::getAccountInfo(bool reload)
|
|||
|
||||
QByteArray responseBody;
|
||||
|
||||
if (apiUtils::isPremiumServer(serverConfig)) {
|
||||
ErrorCode errorCode = gatewayController.post(QString("%1v1/account_info"), apiPayload, responseBody);
|
||||
if (errorCode != ErrorCode::NoError) {
|
||||
emit errorOccurred(errorCode);
|
||||
return false;
|
||||
}
|
||||
ErrorCode errorCode = gatewayController.post(QString("%1v1/account_info"), apiPayload, responseBody);
|
||||
if (errorCode != ErrorCode::NoError) {
|
||||
emit errorOccurred(errorCode);
|
||||
return false;
|
||||
}
|
||||
|
||||
QJsonObject accountInfo = QJsonDocument::fromJson(responseBody).object();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue