正在显示
1 个修改的文件
包含
7 行增加
和
3 行删除
| @@ -460,10 +460,13 @@ class RelayInquiry extends Command | @@ -460,10 +460,13 @@ class RelayInquiry extends Command | ||
| 460 | if (in_array($form->country_name, $this->multiple_ip_visit_country)) { | 460 | if (in_array($form->country_name, $this->multiple_ip_visit_country)) { |
| 461 | $times = mt_rand(2, 5); //随机次数 | 461 | $times = mt_rand(2, 5); //随机次数 |
| 462 | $inquiry_time = mt_rand(1, $times); //第几次询盘 | 462 | $inquiry_time = mt_rand(1, $times); //第几次询盘 |
| 463 | - $this->output('多次访问模拟:' . $times); | 463 | + $this->output('多次访问模拟:' . $times .',第' . $inquiry_time . '次询盘'); |
| 464 | } | 464 | } |
| 465 | for ($i = 1; $i <= $times; $i++) { | 465 | for ($i = 1; $i <= $times; $i++) { |
| 466 | - $is_inquiry = $inquiry_time == $i; | 466 | + $is_inquiry = ($inquiry_time == $i); |
| 467 | + if($is_inquiry){ | ||
| 468 | + $this->output('第' . $i . '次询盘'); | ||
| 469 | + } | ||
| 467 | //手机号过滤 | 470 | //手机号过滤 |
| 468 | $phone = $form->phone; | 471 | $phone = $form->phone; |
| 469 | $filter_phone = $this->get_rand($this->filter_phone); | 472 | $filter_phone = $this->get_rand($this->filter_phone); |
| @@ -518,7 +521,8 @@ class RelayInquiry extends Command | @@ -518,7 +521,8 @@ class RelayInquiry extends Command | ||
| 518 | $seconds += rand(5,60); | 521 | $seconds += rand(5,60); |
| 519 | ReInquiryDetailLog::createInquiryLog($re_detail->id, ReInquiryDetailLog::TYPE_VISIT, $pre, $v, date('Y-m-d H:i:s', $start_time + $seconds)); | 522 | ReInquiryDetailLog::createInquiryLog($re_detail->id, ReInquiryDetailLog::TYPE_VISIT, $pre, $v, date('Y-m-d H:i:s', $start_time + $seconds)); |
| 520 | // 最后一次访问询盘 加上询盘 | 523 | // 最后一次访问询盘 加上询盘 |
| 521 | - if($is_inquiry && $k+1 >= count($urls)){ | 524 | + if($is_inquiry && $k+1 == count($urls)){ |
| 525 | + $this->output('第' . $k+1 . '个链接询盘'); | ||
| 522 | $seconds += rand(30,120); | 526 | $seconds += rand(30,120); |
| 523 | $pre++; | 527 | $pre++; |
| 524 | ReInquiryDetailLog::createInquiryLog($re_detail->id, ReInquiryDetailLog::TYPE_INQUIRY, $pre, $v, date('Y-m-d H:i:s', $start_time + $seconds)); | 528 | ReInquiryDetailLog::createInquiryLog($re_detail->id, ReInquiryDetailLog::TYPE_INQUIRY, $pre, $v, date('Y-m-d H:i:s', $start_time + $seconds)); |
-
请 注册 或 登录 后发表评论