1
This commit is contained in:
@@ -73,8 +73,8 @@ class Welcome extends CI_Controller {
|
||||
|
||||
public function add_clues()
|
||||
{
|
||||
$mobiles = array('13451861233','15597899137','18678980751','15955667720','18264178997','17664142215','18118633658','13137051622','18252477682','15262782639','18143398781','13684477778','13866456606','13866564993','18956893692','13739356611','13803757599','15851396648','13509717315','15154023830','13893444062','13618856280','18264600415','13294189205','13712375759','13605561713','17686843093','13359436547','18005409337','18352691405');
|
||||
$dealerCode = '100619';
|
||||
$mobiles = array('13417777865','18501792567','15002589060','13593871214','18651536066','15996655653','15562157893','18897229897','18274814955','18794315863','15127171801','13308461413','13811868896','13865156035','15339923699','17752511950','13139253765','17872575925','14706909684','17797655027','13513799222','18089356048','15305162642','13938591895','15262305600','15828364005','13909661799','15358907530','15762297885','18390606799','13203915154','13645392555','18605518073','17714208339','18752065854','15514350619','15637938839','18573660287','13622972984','15902303424','18275561639','13355127855','18251417701','17312511119','13837945013','13721667985','18351553332','15285199824','13963741286','15751163795','13594383866','15195619964','19994635633','13903905090','15262294921','13589233394','18907840956','15236152700','18138861592','18986123180');
|
||||
$dealerCode = '100481';
|
||||
|
||||
foreach ($mobiles as $k => $v) {
|
||||
$city_id = '350200';
|
||||
|
||||
@@ -665,53 +665,53 @@ class Act extends Wx
|
||||
// $syt->Tj($dlrCode,"活动客户",$mobile,$mediaCaName,$leadNo);
|
||||
// }
|
||||
|
||||
// if ($a_id == 27) {
|
||||
// //生产地址
|
||||
// $url = 'https://salesapp.hozonauto.com/appservice/app/if/salesclue/createSalesclue';
|
||||
//
|
||||
// //获取意向网点编码
|
||||
// if ($p_user) {
|
||||
// $user = $this->user_model->get(['userId' => $act_user_row['channelId']]);
|
||||
// $biz = $this->market_sylive_organization_model->get(['organizationId' => $user['bizId']]);
|
||||
// }
|
||||
//
|
||||
// if ($biz['comments']) {
|
||||
// $data[] = array(
|
||||
// 'cusSource3' => '023410',
|
||||
// 'customerName' => "活动客户",
|
||||
// 'dealerCode' => $biz['comments'],
|
||||
// 'fromSystem' => "好店云",
|
||||
// 'mobile' => $mobile,
|
||||
// 'saMobile' => $user['mobile'] ? $user['mobile'] : '',
|
||||
// 'cusType' => '30111001',
|
||||
// 'remark' => "2024新春活动",
|
||||
// );
|
||||
//
|
||||
// $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);
|
||||
// curl_close($ch);
|
||||
// debug_log("[info]# " . $data . "\n" . $response, 'neta.log', 'market/sylive');
|
||||
// }
|
||||
// }
|
||||
if ($a_id == 35) {
|
||||
//生产地址
|
||||
$url = 'https://salesapp.hozonauto.com/appservice/app/if/salesclue/createSalesclue';
|
||||
|
||||
//获取意向网点编码
|
||||
if ($p_user) {
|
||||
$user = $this->user_model->get(['userId' => $act_user_row['channelId']]);
|
||||
$biz = $this->market_sylive_organization_model->get(['organizationId' => $user['bizId']]);
|
||||
}
|
||||
|
||||
if ($biz['comments']) {
|
||||
$data[] = array(
|
||||
'cusSource3' => '023410',
|
||||
'customerName' => "活动客户",
|
||||
'dealerCode' => $biz['comments'],
|
||||
'fromSystem' => "好店云",
|
||||
'mobile' => $mobile,
|
||||
'saMobile' => $user['mobile'] ? $user['mobile'] : '',
|
||||
'cusType' => '30111001',
|
||||
'remark' => "2024国庆活动",
|
||||
);
|
||||
|
||||
$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);
|
||||
curl_close($ch);
|
||||
debug_log("[info]# " . $data . "\n" . $response, 'neta.log', 'market/sylive');
|
||||
}
|
||||
}
|
||||
}
|
||||
$redis->delete($key);
|
||||
$this->show_json(array('ukey' => $ukey), 200, '预约成功');
|
||||
|
||||
@@ -522,7 +522,7 @@
|
||||
that.msgisShowReg = false
|
||||
//提交成功
|
||||
that.msgisShowSuccess = true
|
||||
that.ukeyPath = '/pages/lottery/index?encrypt=2711aed73199217a59b968b74883710e&weshop_key=k44f71a&liche_ukey=' + response.data.ukey
|
||||
that.ukeyPath = '/packMarket/pages/team/index?team_en=R8GBMEXGCZ&third_u_key=' + response.data.ukey
|
||||
that.succesTx = {
|
||||
title: that.info.appoint_title,
|
||||
content: that.info.appoint_msg,
|
||||
|
||||
Reference in New Issue
Block a user