mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 02:10:21 +08:00
fix: 关卡名OCR识别大小写出错导致掉落上传失败 #4867
This commit is contained in:
@@ -112,6 +112,8 @@ bool asst::StageDropsTaskPlugin::recognize_drops()
|
||||
|
||||
auto&& [code, difficulty] = analyzer.get_stage_key();
|
||||
m_stage_code = std::move(code);
|
||||
ranges::transform(m_stage_code, m_stage_code.begin(),
|
||||
[](char ch) -> char { return static_cast<char>(::toupper(ch)); });
|
||||
m_stage_difficulty = difficulty;
|
||||
m_stars = analyzer.get_stars();
|
||||
m_cur_drops = analyzer.get_drops();
|
||||
|
||||
Reference in New Issue
Block a user