customers_1008
This commit is contained in:
@@ -238,8 +238,8 @@ class Customers extends Wxapp
|
||||
$of2_id = $this->input_param('of2_id'); //线下来源一级
|
||||
$status = intval($this->input_param('status')); //状态
|
||||
$tag = $this->input_param('tag'); //客户标签
|
||||
$city_id = intval($this->input_param('city_id')); //城市id
|
||||
$county_id = intval($this->input_param('county_id')); //区id
|
||||
$city_id = $this->input_param('city_id'); //城市id
|
||||
$county_id = $this->input_param('county_id'); //区id
|
||||
if (!mobile_valid($mobile)) throw new Exception('请输入正确的手机号码', ERR_PARAMS_ERROR);
|
||||
if (!$city_id || !$county_id) {
|
||||
throw new Exception('请选择城市与行政区', API_CODE_FAIL);
|
||||
@@ -272,8 +272,12 @@ class Customers extends Wxapp
|
||||
$add_data['a_num'] = 1;
|
||||
$add_data['dt_time'] = $time;
|
||||
}
|
||||
$biz_row['city_id'] && $add_data['city_id'] = $biz_row['city_id'];
|
||||
$biz_row['county_id'] && $add_data['county_id'] = $biz_row['county_id'];
|
||||
if (!$add_data['city_id'] && $biz_row['city_id']) {
|
||||
$add_data['city_id'] = $biz_row['city_id'];
|
||||
}
|
||||
if (!$add_data['county_id'] && $biz_row['county_id']) {
|
||||
$add_data['county_id'] = $biz_row['county_id'];
|
||||
}
|
||||
$buy_time && $add_data['buy_time'] = $buy_time;
|
||||
$of_id && $add_data['of_id'] = $of_id;
|
||||
$of2_id && $add_data['of2_id'] = $of2_id;
|
||||
|
||||
Reference in New Issue
Block a user