Revert "Merge branch 'Thunder' of gitee.com:spark-store-project/spark-store into dev"

This reverts commit 5b018a4696.
This commit is contained in:
2024-10-07 15:17:47 +00:00
committed by Gitee
parent adbb2f2b11
commit 267eae076e
27 changed files with 120 additions and 223 deletions

View File

@@ -41,7 +41,8 @@ QString HttpRequest::postRequest(QString url, QString jsondata)
QEventLoop eventLoop;
connect(naManager, SIGNAL(finished(QNetworkReply *)), &eventLoop, SLOT(quit()));
eventLoop.exec();
QString strReply(reply->readAll());
QTextCodec *codec = QTextCodec::codecForName("utf8");
QString strReply = codec->toUnicode(reply->readAll());
reply->deleteLater();
return strReply;
}

View File

@@ -6,6 +6,7 @@
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QEventLoop>
#include <QTextCodec>
class HttpRequest : public QObject
{
Q_OBJECT