作者 赵彬吉

update

@@ -335,7 +335,7 @@ class RelayInquiry extends Command @@ -335,7 +335,7 @@ class RelayInquiry extends Command
335 //需要多个ip访问的国家 随机2-5次访问,只有一次询盘 335 //需要多个ip访问的国家 随机2-5次访问,只有一次询盘
336 if (in_array($val->country_name, $this->multiple_ip_visit_country)) { 336 if (in_array($val->country_name, $this->multiple_ip_visit_country)) {
337 $times = mt_rand(2, 5); //随机次数 337 $times = mt_rand(2, 5); //随机次数
338 - $inquiry_time = mt_rand([1, $times]); //第几次询盘 338 + $inquiry_time = mt_rand(1, $times); //第几次询盘
339 $this->output('多次访问模拟:' . $times); 339 $this->output('多次访问模拟:' . $times);
340 for ($i = 1; $i <= $times; $i++) { 340 for ($i = 1; $i <= $times; $i++) {
341 $res += $this->relayDetail($task, $val, $inquiry_time == $i); 341 $res += $this->relayDetail($task, $val, $inquiry_time == $i);