mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 02:10:21 +08:00
fix.修复一些warning
This commit is contained in:
@@ -42,7 +42,7 @@ bool asst::CreditShoppingTask::_run()
|
||||
static Rect buy_it_rect;
|
||||
if (buy_it_rect.empty()) {
|
||||
const auto buy_it_task_ptr = std::dynamic_pointer_cast<MatchTaskInfo>(
|
||||
task.get("CreditShop-BuyIt"));
|
||||
Task.get("CreditShop-BuyIt"));
|
||||
|
||||
const cv::Mat buy_image = Ctrler.get_image();
|
||||
MatchImageAnalyzer buy_it_analyzer(buy_image);
|
||||
@@ -66,7 +66,7 @@ bool asst::CreditShoppingTask::_run()
|
||||
const cv::Mat prompt_image = Ctrler.get_image();
|
||||
|
||||
const auto no_money_task_ptr = std::dynamic_pointer_cast<OcrTaskInfo>(
|
||||
task.get("CreditShop-NoMoney"));
|
||||
Task.get("CreditShop-NoMoney"));
|
||||
OcrImageAnalyzer prompt_analyzer(prompt_image);
|
||||
prompt_analyzer.set_task_info(*no_money_task_ptr);
|
||||
if (prompt_analyzer.analyze()) {
|
||||
@@ -80,4 +80,4 @@ bool asst::CreditShoppingTask::_run()
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user