Skip to content

Commit

Permalink
Upload notes_foss license validation code
Browse files Browse the repository at this point in the history
  • Loading branch information
nuttyartist committed Aug 26, 2024
1 parent 8a01045 commit 3c3ffc0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ MainWindow::MainWindow(QWidget *parent)
m_localLicenseData(nullptr),
m_subscriptionWindowQuickView(nullptr),
m_subscriptionWindowWidget(new QWidget(this)),
m_purchaseDataAlt1(QStringLiteral("https://raw.githubusercontent.com/nuttyartist/notes/"
"master/notes_purchase_data.json")),
m_purchaseDataAlt1(QStringLiteral("http://localhost:3000/notes_foss/notes_purchase_data.json")),
//"https://raw.githubusercontent.com/nuttyartist/notes/"
//"master/notes_purchase_data.json")),
m_purchaseDataAlt2(
QStringLiteral("https://www.rubymamistvalove.com/notes/notes_purchase_data.json")),
m_dataBuffer(new QByteArray()),
Expand Down Expand Up @@ -1418,6 +1419,9 @@ void MainWindow::getSubscriptionStatus()
QByteArray responseData = reply->readAll();
QJsonObject response = QJsonDocument::fromJson(responseData).object();

qDebug() << "License: " << m_userLicenseKey;
qDebug() << "response: " << response;

if (response.isEmpty()) {
// No Internet
if (!m_localLicenseData->contains(QStringLiteral("gracePeriodStartedDate"))) {
Expand Down

0 comments on commit 3c3ffc0

Please sign in to comment.