This commit is contained in:
xiaoyu
2024-02-05 10:12:43 +08:00
parent 34eacaf338
commit 12f64de8ca
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -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) {
+4 -4
View File
@@ -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));