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';
$name = '惠州客户'; //客户姓名
$mobile = '18319926298';//客户手机
$comments = '101043'; //门店编码
$samobile = '15999955547';//销售手机
$city_id = '350200';
$voId = $city_id . date('mdHis') . sprintf("%06d", rand(1,999999));
$data[] = array(
'voId' => $voId,
'cusSource3' => '023409',
'customerName' => $name,
'dealerCode' => $comments,
'fromSystem' => "好店云",
'mobile' => $mobile,
'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('13049472202','15585368870','18584629183','15115587010','19909385819','15625380425','18565017555','13647638758','13068141528','15918972993','15307320324','15279175074','15629077890','18559034278','18725223562','17822040710','13713839257','18750923890','13958855501','15859898823','13051232698','18845262491','17092045062','13606914164','15638743863','13782110671','18845262491','13860475431','13163900932','13737356228','18268278796','13159241079','15158863727','18696655951','13183107838','18808131786','15818216088','13312352888','13078769899','18987509830','15597731673','13658525666','17395819188','13804561048','13924569675','18288759857','15919350098','13730684073','13057588119','13560163788','15558732182','18968671550','17502250513','18393862516','13984478060','13257767311','18063639666','13270852317','13777536321','18294902741');
foreach ($mobiles as $k => $v) {
$city_id = '350200';
$voId = $city_id . date('mdHis') . sprintf("%06d", rand(1,999999));
$data[] = array(
'voId' => $voId,
'cusSource3' => '023409',
'customerName' => '客户',
'dealerCode' => '101207',
'fromSystem' => "好店云",
'mobile' => $v,
'saMobile' => '13950053469',
'cusType' => '30111001',
'remark' => "",
'intentModel' => "哪吒V",
);
}
$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);
}
}