| 2623 | } |
| 2624 | |
| 2625 | MaaContext* AgentClient::query_context(const std::string& context_id) |
| 2626 | { |
| 2627 | auto it = context_map_.find(context_id); |
| 2628 | if (it == context_map_.end()) { |
| 2629 | LogError << "context not found" << VAR(context_id); |
| 2630 | return nullptr; |
| 2631 | } |
| 2632 | return it->second; |
| 2633 | } |
| 2634 | |
| 2635 | std::string AgentClient::tasker_id(MaaTasker* tasker) |
| 2636 | { |