fix: 会客室任务失败重试时尝试关闭赠送线索界面

fix #15726
This commit is contained in:
uye
2026-02-16 00:36:13 +08:00
parent 4a6cbfdd7e
commit cdb98701fd
2 changed files with 11 additions and 0 deletions

View File

@@ -74,6 +74,16 @@ bool asst::InfrastReceptionTask::_run()
return true;
}
bool asst::InfrastReceptionTask::on_run_fails()
{
if (asst::InfrastAbstractTask::on_run_fails()) {
return true;
}
ProcessTask(*this, { "CloseSendClue", "Stop" }).run();
return asst::InfrastAbstractTask::on_run_fails();
}
bool asst::InfrastReceptionTask::receive_message_board()
{
return ProcessTask(*this, { "InfrastReceptionReceiveMessageBoard" }).run();

View File

@@ -19,6 +19,7 @@ public:
protected:
virtual bool _run() override;
virtual bool on_run_fails() override;
private:
virtual int operlist_swipe_times() const noexcept override { return 4; }