|
...
|
...
|
@@ -460,10 +460,13 @@ class RelayInquiry extends Command |
|
|
|
if (in_array($form->country_name, $this->multiple_ip_visit_country)) {
|
|
|
|
$times = mt_rand(2, 5); //随机次数
|
|
|
|
$inquiry_time = mt_rand(1, $times); //第几次询盘
|
|
|
|
$this->output('多次访问模拟:' . $times);
|
|
|
|
$this->output('多次访问模拟:' . $times .',第' . $inquiry_time . '次询盘');
|
|
|
|
}
|
|
|
|
for ($i = 1; $i <= $times; $i++) {
|
|
|
|
$is_inquiry = $inquiry_time == $i;
|
|
|
|
$is_inquiry = ($inquiry_time == $i);
|
|
|
|
if($is_inquiry){
|
|
|
|
$this->output('第' . $i . '次询盘');
|
|
|
|
}
|
|
|
|
//手机号过滤
|
|
|
|
$phone = $form->phone;
|
|
|
|
$filter_phone = $this->get_rand($this->filter_phone);
|
|
...
|
...
|
@@ -518,7 +521,8 @@ class RelayInquiry extends Command |
|
|
|
$seconds += rand(5,60);
|
|
|
|
ReInquiryDetailLog::createInquiryLog($re_detail->id, ReInquiryDetailLog::TYPE_VISIT, $pre, $v, date('Y-m-d H:i:s', $start_time + $seconds));
|
|
|
|
// 最后一次访问询盘 加上询盘
|
|
|
|
if($is_inquiry && $k+1 >= count($urls)){
|
|
|
|
if($is_inquiry && $k+1 == count($urls)){
|
|
|
|
$this->output('第' . $k+1 . '个链接询盘');
|
|
|
|
$seconds += rand(30,120);
|
|
|
|
$pre++;
|
|
|
|
ReInquiryDetailLog::createInquiryLog($re_detail->id, ReInquiryDetailLog::TYPE_INQUIRY, $pre, $v, date('Y-m-d H:i:s', $start_time + $seconds));
|
...
|
...
|
|