This commit is contained in:
xiaoyu
2024-04-20 23:07:37 +08:00
parent 19e9b0c4ee
commit aefec6d339
3 changed files with 93 additions and 40 deletions
+59 -14
View File
@@ -9,11 +9,10 @@ class Clues extends HD_Controller
'350' => array(
'name' => '福建',
'list' => array(
'100958' => array(
'biz' => '福州齐安路',
'sa' => '陈秋龙',
'mobile' => '17758949069'
'sa' => '陈钰文',
'mobile' => '15880116268'
),
'100966' => array(
'biz' => '泉州南环路',
@@ -52,8 +51,9 @@ class Clues extends HD_Controller
),
'101207' => array(
'biz' => '厦门胜华嘉',
'sa' => '',
'mobile' => ''
),
'101323' => array(
'biz' => '厦门机场店',
),
),
),
@@ -70,11 +70,6 @@ class Clues extends HD_Controller
'sa' => '占杨',
'mobile' => '18923392948'
),
'100832' => array(
'biz' => '中山金玺',
'sa' => '黄美愉',
'mobile' => '17329610587'
),
'101252' => array(
'biz' => '佛山鑫明宇',
'sa' => '陈惠伦',
@@ -82,8 +77,8 @@ class Clues extends HD_Controller
),
'101289' => array(
'biz' => '深圳东浩',
'sa' => '余佳思',
'mobile' => '15889556579'
'sa' => '余佳思', // 庄海山
'mobile' => '15889556579' //18123821527
),
'101204' => array(
'biz' => '东莞金屹',
@@ -92,8 +87,8 @@ class Clues extends HD_Controller
),
'101043' => array(
'biz' => '惠州新零致',
'sa' => '张安琪',
'mobile' => '15999955547'
'sa' => '黄家婷',
'mobile' => '13719698587'
),
'100671' => array(
'biz' => '梅州利兴',
@@ -125,6 +120,56 @@ class Clues extends HD_Controller
'sa' => '林良杰',
'mobile' => '18926369788'
),
'100309' => array(
'biz' => '海口福瑞源',
'sa' => '蔡智明',
'mobile' => '1888999038'
),
)
),
'410' => array(
'name' => '广西',
'list' => array(
'100813' => array(
'biz' => '桂林车管家',
'sa' => '覃智歆',
'mobile' => '13768710609'
),
'100681' => array(
'biz' => '柳州骏辉',
'sa' => '卢融溪',
'mobile' => '18677222303'
),
'100481' => array(
'biz' => '北海池骋',
'sa' => '凌国蔚',
'mobile' => '13317793668'
),
'100930' => array(
'biz' => '玉林通菲悦',
'sa' => '晏小凤',
'mobile' => '18277561170'
),
'101051' => array(
'biz' => '南宁众耀达',
'sa' => '刘迪迪',
'mobile' => '19376347052'
),
'100232' => array(
'biz' => '南宁众合达',
'sa' => '莫玉福',
'mobile' => '19114702779'
),
'100531' => array(
'biz' => '钦州瑞昇',
'sa' => '黄语乔',
'mobile' => '19377780781'
),
'100716' => array(
'biz' => '贵港迅猫',
'sa' => '',
'mobile' => '19175951279'
),
)
),
+30 -22
View File
@@ -16,27 +16,34 @@ class Welcome extends CI_Controller {
//测试地址
//$url = 'https://salespp-sit.hozonauto.com/appservice/app/if/salesclue/createSalesclue';
$name = '温暖妈咪'; //客户姓名
$mobile = '18923149770';//客户手机
$cus = array('19372510901');
$comments = '101252'; //门店编码
$samobile = '13790011910';//销售手机
$comments = '100531'; //门店编码
$samobile = '19377780781';//销售手机
//$cusSource3 = '023305'; //本地通
$cusSource3 = '023409'; //区域云店 福泉厦
$city_id = '350200';
$voId = $city_id . date('mdHis') . sprintf("%06d", rand(1,999999));
//$voId = $city_id . date('mdHis') . sprintf("%06d", rand(1,999999));
$data[] = array(
'voId' => $voId,
'cusSource3' => '021511',//'023409',
'customerName' => $name,
'dealerCode' => $comments,
'fromSystem' => "好店云",
'mobile' => $mobile,
'saMobile' => $samobile,
'cusType' => '30111001',
'remark' => "",
'intentModel' => "哪吒AYA",
);
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));
@@ -66,7 +73,8 @@ class Welcome extends CI_Controller {
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');
$mobiles = array('17759669876','17850230885','18006966001','18060283294','18150717109','18159553460');
$dealerCode = '100619';
foreach ($mobiles as $k => $v) {
$city_id = '350200';
@@ -74,15 +82,15 @@ class Welcome extends CI_Controller {
$data[] = array(
'voId' => $voId,
'cusSource3' => '023409',
'cusSource3' => '023410',//023410:云店营销节点
'customerName' => '客户',
'dealerCode' => '101207',
'dealerCode' => $dealerCode,
'fromSystem' => "好店云",
'mobile' => $v,
'saMobile' => '13950053469',
'saMobile' => '',
'cusType' => '30111001',
'remark' => "",
'intentModel' => "哪吒V",
'intentModel' => "",
);
}
+4 -4
View File
@@ -136,10 +136,10 @@ class Draw extends CI_Controller
if ($v['itemIds']) {
//不中奖奖品
if($activityId == 26 and in_array($winType, array(2,3))){
$activityId = 13;
if($activityId == 29 and in_array($winType, array(1,2,3))){
$activityId = 21;
$whereOrder = ['activityId' => $activityId, 'status' => 1];
$v['itemIds'] = [21];
$v['itemIds'] = [27];
}
$itemIds = implode(',', $v['itemIds']);
@@ -257,7 +257,7 @@ class Draw extends CI_Controller
$dev = false !== strpos($_SERVER['HTTP_HOST'], 'dev') ? 1 : 0;
foreach ($result as $v) {
if($activityId == 26 and in_array($winType, array(2,3))){
if($activityId == 29 and in_array($winType, array(1,2,3))){
$resultSet[] = $v;
$winNum++;
$sms++;