requests to ofd

This commit is contained in:
2024-11-27 01:46:36 +03:00
parent 1843479e6b
commit 47dfc19395
9 changed files with 125 additions and 33 deletions

View File

@@ -65,8 +65,7 @@ void MainWindow::receiveSolvedCaptcha(std::string captcha) {
std::string check_content = makeRequestToOfd(captcha);
std::cout << check_content << std::endl;
check = parseOfdRuAnswer(check_content);
}
void MainWindow::on_parseButton_clicked() {
@@ -83,6 +82,10 @@ void MainWindow::on_parseButton_clicked() {
SolveCaptchaDialog dialog = SolveCaptchaDialog(this);
connect(&dialog, &SolveCaptchaDialog::solvedCaptcha, this, &MainWindow::receiveSolvedCaptcha);
dialog.exec();
OutputDialog d = OutputDialog(this, check);
d.show();
d.exec();
return;
}
@@ -96,8 +99,6 @@ void MainWindow::on_parseButton_clicked() {
return;
}
Check check;
for (auto& g : c) {
check.add_goods(g);
}