fixed crash app & up vercion & fix qml captha
This commit is contained in:
parent
55572eddd1
commit
d3c1f0a6f8
12 changed files with 159 additions and 27 deletions
|
|
@ -170,6 +170,13 @@ amnezia::ErrorCode apiUtils::checkNetworkReplyErrors(const QList<QSslError> &ssl
|
|||
qDebug() << replyError;
|
||||
qDebug() << httpStatusCode;
|
||||
|
||||
if (httpStatusCode == httpStatusCodeNotFound) {
|
||||
const QJsonDocument probe = QJsonDocument::fromJson(responseBody);
|
||||
if (!probe.isObject()) {
|
||||
return amnezia::ErrorCode::ApiNotFoundError;
|
||||
}
|
||||
}
|
||||
|
||||
QJsonDocument jsonDoc = QJsonDocument::fromJson(responseBody);
|
||||
if (jsonDoc.isObject()) {
|
||||
QJsonObject jsonObj = jsonDoc.object();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue