customer_tag_315_2

This commit is contained in:
dengbw
2022-03-15 13:34:45 +08:00
parent 18a0d23ee9
commit d32fec4152
@@ -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);
//}