|
...
|
...
|
@@ -332,17 +332,7 @@ class RelayInquiry extends Command |
|
|
|
try {
|
|
|
|
$res = false;
|
|
|
|
foreach ($ad_task as $task){
|
|
|
|
//需要多个ip访问的国家 随机2-5次访问,只有一次询盘
|
|
|
|
if (in_array($val->country_name, $this->multiple_ip_visit_country)) {
|
|
|
|
$times = mt_rand(2, 5); //随机次数
|
|
|
|
$inquiry_time = mt_rand(1, $times); //第几次询盘
|
|
|
|
$this->output('多次访问模拟:' . $times);
|
|
|
|
for ($i = 1; $i <= $times; $i++) {
|
|
|
|
$res += $this->relayDetail($task, $val, $inquiry_time == $i);
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
$res += $this->relayDetail($task, $val);
|
|
|
|
}
|
|
|
|
$res += $this->relayShopDetail($task, $val);
|
|
|
|
$res += $this->relayFobDetail($task, $val);
|
|
|
|
}
|
|
...
|
...
|
@@ -405,7 +395,7 @@ class RelayInquiry extends Command |
|
|
|
* @param $form
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function relayDetail($task, $form, $is_inquiry = true)
|
|
|
|
public function relayDetail($task, $form)
|
|
|
|
{
|
|
|
|
$this->output('获取转发对象');
|
|
|
|
if(empty($task['target'] )){
|
|
...
|
...
|
@@ -441,6 +431,16 @@ class RelayInquiry extends Command |
|
|
|
}
|
|
|
|
$this->logChannel()->info('随机域名', array_column($random_data, 'url'));
|
|
|
|
foreach ($random_data as $item) {
|
|
|
|
//需要多个ip访问的国家 随机2-5次访问,只有一次询盘
|
|
|
|
$times = 1;
|
|
|
|
$inquiry_time = 1;
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
for ($i = 1; $i <= $times; $i++) {
|
|
|
|
$is_inquiry = $inquiry_time == $i;
|
|
|
|
//手机号过滤
|
|
|
|
$phone = $form->phone;
|
|
|
|
$filter_phone = $this->get_rand($this->filter_phone);
|
|
...
|
...
|
@@ -500,6 +500,7 @@ class RelayInquiry extends Command |
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|