chore: added account_info request for amfree (#1586)

This commit is contained in:
Nethius 2025-05-16 14:34:56 +08:00 committed by GitHub
parent 7702f2f74c
commit e23cbe67ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,12 +63,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();