From 12f64de8ca7f368d7da642d9659e3979a3f38d2e Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Mon, 5 Feb 2024 10:12:43 +0800 Subject: [PATCH] neta0205 --- api/controllers/wxapp/neta/Act.php | 8 ++++---- home/controllers/Welcome.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/api/controllers/wxapp/neta/Act.php b/api/controllers/wxapp/neta/Act.php index 8f913a8a..4e7606f2 100644 --- a/api/controllers/wxapp/neta/Act.php +++ b/api/controllers/wxapp/neta/Act.php @@ -24,7 +24,7 @@ class Act extends Wxapp $activity = $this->market_sylive_activity_model->get(['activityId' => $activityId]); if (!$activity) { - //throw new Hd_exception('活动不存在', API_CODE_FAIL); + throw new Hd_exception('活动不存在', API_CODE_FAIL); } if (!$ukey) { @@ -48,7 +48,7 @@ class Act extends Wxapp $ukey = $this->input_param('ukey'); $reward_id = $this->input_param('reward_id'); - debug_log("[info]# " . json_encode($this->input_param(),JSON_UNESCAPED_UNICODE), 'market/sylive','neta.log'); + debug_log("[info]# " . json_encode($this->input_param(),JSON_UNESCAPED_UNICODE), 'neta.log', 'market/sylive'); //$reward_id 对应 winType $winTypes = array( @@ -68,7 +68,7 @@ class Act extends Wxapp throw new Hd_exception('活动不存在', API_CODE_FAIL); } - if (!$reward_id || !in_array($reward_id, $winTypes)) { + if (!$reward_id || !$winTypes[$reward_id]) { throw new Hd_exception('参数错误', API_CODE_FAIL); } @@ -107,7 +107,7 @@ class Act extends Wxapp $ukey = $this->input_param('ukey'); $car = $this->input_param('car'); - debug_log("[info]# " . json_encode($this->input_param(),JSON_UNESCAPED_UNICODE), 'market/sylive','neta.log'); + debug_log("[info]# " . json_encode($this->input_param(),JSON_UNESCAPED_UNICODE), 'neta.log', 'market/sylive'); $activity = $this->market_sylive_activity_model->get(['activityId' => $activityId]); if (!$activity) { diff --git a/home/controllers/Welcome.php b/home/controllers/Welcome.php index 07e3bb62..4da5d7fb 100644 --- a/home/controllers/Welcome.php +++ b/home/controllers/Welcome.php @@ -16,11 +16,11 @@ class Welcome extends CI_Controller { //测试地址 //$url = 'https://salespp-sit.hozonauto.com/appservice/app/if/salesclue/createSalesclue'; - $name = '......'; //客户姓名 - $mobile = '18664090524';//客户手机 + $name = '超级化妆品销售达人'; //客户姓名 + $mobile = '13625834316';//客户手机 - $comments = '101204'; //门店编码 - $samobile = '17688624688';//销售手机 + $comments = '100647'; //门店编码 + $samobile = '18923392948';//销售手机 $city_id = '350200'; $voId = $city_id . date('mdHis') . sprintf("%06d", rand(1,999999));