version-specific user track

This commit is contained in:
Le Tan 2019-05-21 20:57:36 +08:00
parent 8d780bd589
commit b02b9d711b

View File

@ -3590,7 +3590,9 @@ void VMainWindow::collectUserStat() const
qDebug() << "send user track" << QDate::currentDate(); qDebug() << "send user track" << QDate::currentDate();
QWebEnginePage *page = new QWebEnginePage; QWebEnginePage *page = new QWebEnginePage;
page->load(QUrl("https://tamlok.github.io/user_track/vnote.html"));
QString url = QString("https://tamlok.github.io/user_track/vnote/vnote_%1.html").arg(VConfigManager::c_version);
page->load(QUrl(url));
connect(page, &QWebEnginePage::loadFinished, connect(page, &QWebEnginePage::loadFinished,
this, [page](bool) { this, [page](bool) {
VUtils::sleepWait(2000); VUtils::sleepWait(2000);