404";exit;
}
public function neta(){
//echo "
404
";exit;
//生产地址
$url = 'https://salesapp.hozonauto.com/appservice/app/if/salesclue/createSalesclue';
//测试地址
//$url = 'https://salespp-sit.hozonauto.com/appservice/app/if/salesclue/createSalesclue';
$cus = array('18878903790');
$comments = '100681'; //门店编码
$samobile = '18677222303';//销售手机
$cusSource3 = '023305'; //本地通
//$cusSource3 = '023409'; //区域云店 福泉厦
$city_id = '350200';
//$voId = $city_id . date('mdHis') . sprintf("%06d", rand(1,999999));
foreach ($cus as $v){
$voId = $city_id . date('mdHis') . sprintf("%06d", rand(1,999999));
$data[] = array(
'voId' => $voId,
'cusSource3' => $cusSource3,
'customerName' => '客户',
'dealerCode' => $comments,
'fromSystem' => "好店云",
'mobile' => $v,
'saMobile' => $samobile,
'cusType' => '30111001',
'remark' => '网约车',
'intentModel' => "哪吒AYA",
);
}
print_r(json_encode($data,JSON_UNESCAPED_UNICODE));
$data = json_encode($data, JSON_UNESCAPED_UNICODE);
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
//https
if (strlen($url) > 5 && strtolower(substr($url, 0, 5)) == "https") {
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
}
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json; charset=utf-8',
'Content-Length: ' . strlen($data)
)
);
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
var_dump($response);
}
public function add_clues()
{
$mobiles = array('13851395658','18271924002','13972345374','15826574179','15866211996','15826501048','18172576894','15036807871','13956709302','15109311801','13648040299','15965116200','15192717702','18743498212','13694396399','13302198068','13296329907','18537096927','13997695028','13336329575');
$dealerCode = '101207';
foreach ($mobiles as $k => $v) {
$city_id = '350200';
$voId = $city_id . date('mdHis') . sprintf("%06d", rand(1,999999));
$data[] = array(
'voId' => $voId,
'cusSource3' => '023410',//'023409',//023410:云店营销节点
'customerName' => '客户',
'dealerCode' => $dealerCode,
'fromSystem' => "好店云",
'mobile' => $v,
'saMobile' => '',
'cusType' => '30111001',
'remark' => "",
'intentModel' => "",
);
}
$data = json_encode($data, JSON_UNESCAPED_UNICODE);
$url = 'https://salesapp.hozonauto.com/appservice/app/if/salesclue/createSalesclue';
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
//https
if (strlen($url) > 5 && strtolower(substr($url, 0, 5)) == "https") {
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
}
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json; charset=utf-8',
'Content-Length: ' . strlen($data)
)
);
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
var_dump($response);
}
}