feat: 给公招每一个槽位设置重试上限

This commit is contained in:
zzyyyl
2022-06-23 22:40:30 +08:00
parent b917404f5b
commit 5765c0466b

View File

@@ -127,7 +127,7 @@ bool asst::AutoRecruitTask::calc_and_recruit()
int maybe_level;
bool has_robot_tag;
while(true) {
for (int cur_refresh_times = 0; cur_refresh_times < m_retry_times; ++cur_refresh_times) {
RecruitCalcTask recruit_task(m_callback, m_callback_arg, m_task_chain);
recruit_task.set_param(m_select_level, true, m_skip_robot)
.set_retry_times(m_retry_times)