2
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by Vim
|
||||
* User: lcc
|
||||
* Date: 2021/06/29
|
||||
* Time: 13:47
|
||||
*/
|
||||
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
class Neta_model extends HD_Model
|
||||
{
|
||||
private $table_name = 'lc_neta_10';
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct($this->table_name, 'default');
|
||||
}
|
||||
}
|
||||
@@ -73,50 +73,59 @@ class Welcome extends CI_Controller {
|
||||
|
||||
public function add_clues()
|
||||
{
|
||||
$mobiles = array('13866790072','13720239200','18907194081','13163118145','15014140367','17670518115','15371113565','13995687107','15347175777','15588309035','15197879915','17561549261','15684548756','13963168469','15065198628','18389173251','18389108897','13863881516','13627232002','18771921959','15954038866','18037989222','18921455430','15251393701','18788042755','13255673535','18898787107','18802777062','13326244206','15239413968');
|
||||
$dealerCode = '100481';
|
||||
$this->load->model('hdcloud/neta_model');
|
||||
|
||||
foreach ($mobiles as $k => $v) {
|
||||
$city_id = '350200';
|
||||
$voId = $city_id . date('mdHis') . sprintf("%06d", rand(1,999999));
|
||||
|
||||
$data[] = array(
|
||||
'voId' => $voId,
|
||||
'cusSource3' => '020103',//'023409'区域云店,//023410:云店营销节点 //020103太平洋
|
||||
'customerName' => '客户',
|
||||
'dealerCode' => $dealerCode,
|
||||
'fromSystem' => "好店云",
|
||||
'mobile' => $v,
|
||||
'saMobile' => '',
|
||||
'cusType' => '30111001',
|
||||
'remark' => "",
|
||||
'intentModel' => "",
|
||||
$dealerCode = array('101568');
|
||||
|
||||
foreach ($dealerCode as $d)
|
||||
{
|
||||
$mobiles = $this->neta_model->select(array('status' => 0), '', 1, 20);
|
||||
|
||||
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:云店营销节点 //020103太平洋
|
||||
'customerName' => '客户',
|
||||
'dealerCode' => $d,
|
||||
'fromSystem' => "好店云",
|
||||
'mobile' => $v['mobile'],
|
||||
'saMobile' => '',
|
||||
'cusType' => '30111001',
|
||||
'remark' => "",
|
||||
'intentModel' => "",
|
||||
);
|
||||
|
||||
$this->neta_model->update(array('status' => 1), array('id' => $v['id']));
|
||||
}
|
||||
|
||||
$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);
|
||||
}
|
||||
|
||||
$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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div id="app" style="min-height: 100vh;background-color:<?= $info['bgColor'] ?: '#f6f6f6' ?>" class="relative">
|
||||
<header v-if="0" class="absolute left-0 top-0 right-0 z-index-1">
|
||||
<div class="fn-flex fn-flex-between fn-flex-middle ulib-rb30 bg-fff pl30 pr30 pt20 pb20">
|
||||
<a href="/h5/market/sylive2/biz?type=1" v-if="info.isAdmin">
|
||||
<a href="/h5/market/sylive2/biz?type=1" v-if="info.isAdmin && info.biz.biz_name">
|
||||
<div class="font-26"><i class="iconfont icon-tuichu"></i><span class="ml5">返回</span></div>
|
||||
</a>
|
||||
<div class="fn-flex">
|
||||
@@ -14,7 +14,7 @@
|
||||
我的权益
|
||||
</van-tag>
|
||||
</a>
|
||||
<a href="/h5/market/sytopic/welcome/share?skey=<?= $skey ?>" v-if="info.isAdmin">
|
||||
<a href="/h5/market/sytopic/welcome/share?skey=<?= $skey ?>" v-if="info.isAdmin && info.biz.biz_name">
|
||||
<van-tag color="#1a1a1a" round class="ml20"><i class="iconfont icon-fenxiang mr5"></i>分享</van-tag>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user