mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 02:10:21 +08:00
perf.修改need_match为fullMatch
This commit is contained in:
@@ -304,7 +304,7 @@
|
||||
"SwipeLeftToStage1-7": {
|
||||
"algorithm": "OcrDetect",
|
||||
"action": "SlowlySwipeToTheLeft",
|
||||
"need_match": true,
|
||||
"fullMatch": true,
|
||||
"text": [
|
||||
"1-8",
|
||||
"TR-10",
|
||||
@@ -328,7 +328,7 @@
|
||||
"SwipeRightToStage1-7": {
|
||||
"algorithm": "OcrDetect",
|
||||
"action": "SlowlySwipeToTheRight",
|
||||
"need_match": true,
|
||||
"fullMatch": true,
|
||||
"text": [
|
||||
"1-1",
|
||||
"1-2",
|
||||
|
||||
@@ -89,7 +89,7 @@ bool asst::TaskData::parse(const json::value& json)
|
||||
for (const json::value& text : task_json.at("text").as_array()) {
|
||||
ocr_task_info_ptr->text.emplace_back(text.as_string());
|
||||
}
|
||||
ocr_task_info_ptr->need_full_match = task_json.get("need_match", false);
|
||||
ocr_task_info_ptr->need_full_match = task_json.get("fullMatch", false);
|
||||
if (task_json.contains("ocrReplace")) {
|
||||
for (const json::value& rep : task_json.at("ocrReplace").as_array()) {
|
||||
ocr_task_info_ptr->replace_map.emplace(rep.as_array()[0].as_string(), rep.as_array()[1].as_string());
|
||||
|
||||
Reference in New Issue
Block a user