mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 02:55:38 +08:00
fix.改了些有的没的报错,修复一处崩溃问题
This commit is contained in:
@@ -19,7 +19,7 @@ bool asst::CreditShoppingTask::_run()
|
||||
};
|
||||
m_callback(AsstMsg::TaskStart, task_start_json, m_callback_arg);
|
||||
|
||||
const cv::Mat& image = Ctrler.get_image();
|
||||
const cv::Mat image = Ctrler.get_image();
|
||||
|
||||
CreditShopImageAnalyzer shop_analyzer(image);
|
||||
if (!shop_analyzer.analyze()) {
|
||||
@@ -44,7 +44,7 @@ bool asst::CreditShoppingTask::_run()
|
||||
const auto buy_it_task_ptr = std::dynamic_pointer_cast<MatchTaskInfo>(
|
||||
task.get("CreditShop-BuyIt"));
|
||||
|
||||
const cv::Mat& buy_image = Ctrler.get_image();
|
||||
const cv::Mat buy_image = Ctrler.get_image();
|
||||
MatchImageAnalyzer buy_it_analyzer(buy_image);
|
||||
buy_it_analyzer.set_task_info(*buy_it_task_ptr);
|
||||
if (!buy_it_analyzer.analyze()) {
|
||||
@@ -63,7 +63,7 @@ bool asst::CreditShoppingTask::_run()
|
||||
sleep(rare_delay);
|
||||
|
||||
// 识别是否信用不足无法购买
|
||||
const cv::Mat& prompt_image = Ctrler.get_image();
|
||||
const cv::Mat prompt_image = Ctrler.get_image();
|
||||
|
||||
const auto no_money_task_ptr = std::dynamic_pointer_cast<OcrTaskInfo>(
|
||||
task.get("CreditShop-NoMoney"));
|
||||
|
||||
Reference in New Issue
Block a user