mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 10:32:19 +08:00
@@ -18,7 +18,7 @@ bool asst::RoguelikeCustomStartTaskPlugin::verify(AsstMsg msg, const json::value
|
||||
if (!roguelike_name_opt) {
|
||||
return false;
|
||||
}
|
||||
const auto& roguelike_name = roguelike_name_opt.value() + "@";
|
||||
const std::string roguelike_name = std::move(roguelike_name_opt.value()) + "@";
|
||||
const std::string& task = details.get("details", "task", "");
|
||||
std::string_view task_view = task;
|
||||
if (task_view.starts_with(roguelike_name)) {
|
||||
|
||||
Reference in New Issue
Block a user