requests to ofd
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user