From 2d797490ca46add1a81012f462b59f08c5764506 Mon Sep 17 00:00:00 2001 From: dengbw Date: Tue, 15 Mar 2022 13:34:45 +0800 Subject: [PATCH] customer_tag_315_2 --- api/controllers/wxapp/licheb/Customers.php | 26 ---------------------- 1 file changed, 26 deletions(-) diff --git a/api/controllers/wxapp/licheb/Customers.php b/api/controllers/wxapp/licheb/Customers.php index 0b4c3669..ee05cc6c 100644 --- a/api/controllers/wxapp/licheb/Customers.php +++ b/api/controllers/wxapp/licheb/Customers.php @@ -147,19 +147,6 @@ class Customers extends Wxapp } $update = []; if ($row['cf_title'] != '平台分配') { - if ($tag) {//客户标签检查 - foreach ($tag as $key => $val) { - $checked = false;//检查是否有选择 - foreach ($val['list'] as $key2 => $val2) { - if ($val2['checked'] == true) { - $checked = true; - } - } - if ($checked == false) { - throw new Exception('请选择' . $val['name'], API_CODE_FAIL); - } - } - } if ($mobile) { if (!mobile_valid($mobile)) { throw new Exception('手机号格式错误', ERR_PARAMS_ERROR); @@ -255,19 +242,6 @@ class Customers extends Wxapp $status = intval($this->input_param('status')); //状态 $tag = $this->input_param('tag'); //客户标签 if (!mobile_valid($mobile)) throw new Exception('请输入正确的手机号码', ERR_PARAMS_ERROR); - if ($tag) {//客户标签检查 - foreach ($tag as $key => $val) { - $checked = false;//检查是否有选择 - foreach ($val['list'] as $key2 => $val2) { - if ($val2['checked'] == true) { - $checked = true; - } - } - if ($checked == false) { - throw new Exception('请选择' . $val['name'], API_CODE_FAIL); - } - } - } //if (!$name || !$car_id || !$v_id || !$color_id) { //throw new Exception('参数错误', ERR_PARAMS_ERROR); //}