mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-02 17:32:25 +08:00
更换搜索服务器域名为星火的域名
This commit is contained in:
parent
7a5b982dea
commit
1d0e0cc65c
@ -78,12 +78,12 @@ void AppItem::downloadIcon(QString icon)
|
||||
reqManager->deleteLater();
|
||||
QPixmap pixmap;
|
||||
pixmap.loadFromData(reply->readAll());
|
||||
qDebug() << "图标下载完毕:" << pixmap;
|
||||
qDebug() << icon << "响应有报错吗?" << reply->errorString();
|
||||
pixmap = pixmap.scaled(78, 78, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
|
||||
if (reply->error() == QNetworkReply::NoError) {
|
||||
QMetaObject::invokeMethod(this, "loadIcon", Qt::QueuedConnection,
|
||||
Q_ARG(QPixmap, pixmap));
|
||||
} else {
|
||||
qDebug() << reply->errorString();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -37,7 +37,6 @@ private:
|
||||
QString m_title;
|
||||
QString m_description;
|
||||
QString m_icon;
|
||||
QString m_pkgname;
|
||||
QString m_url;
|
||||
};
|
||||
|
||||
|
@ -727,7 +727,7 @@ void Widget::searchApp(QString text)
|
||||
// ui->stackedWidget->setCurrentIndex(0);
|
||||
|
||||
// 关键字搜索处理
|
||||
httpClient->get("http://spark-store-api.metanoia1989.com/appinfo/search")
|
||||
httpClient->get("http://search.deepinos.org.cn/appinfo/search")
|
||||
.header("content-type", "application/json")
|
||||
.queryParam("keyword", text)
|
||||
.onResponse([this](QByteArray result) {
|
||||
@ -737,8 +737,6 @@ void Widget::searchApp(QString text)
|
||||
sendNotification(tr("Not found relative App!"));
|
||||
return;
|
||||
}
|
||||
// TODO 展示应用
|
||||
qDebug() << json;
|
||||
displaySearchApp(json);
|
||||
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user