feat.暂时废弃百度 OCR API

This commit is contained in:
MistEO
2021-12-17 21:20:40 +08:00
parent 02551f62ce
commit a2c49d2feb
10 changed files with 123 additions and 66 deletions

View File

@@ -402,10 +402,10 @@ void asst::Assistant::set_penguin_id(const std::string& id)
{
auto& opt = Resrc.cfg().get_options();
if (id.empty()) {
opt.penguin_report_extra_param.clear();
opt.penguin_report.extra_param.clear();
}
else {
opt.penguin_report_extra_param = "-H \"authorization: PenguinID " + id + "\"";
opt.penguin_report.extra_param = "-H \"authorization: PenguinID " + id + "\"";
}
}