lichene_328_4
This commit is contained in:
@@ -187,6 +187,9 @@ class Lichene extends CI_Controller
|
||||
if (!$mobile) {
|
||||
$this->show_json(400, '请输入手机号!');
|
||||
}
|
||||
if (!mobile_valid($mobile)) {
|
||||
$this->show_json(400, '手机号格式不正确!');
|
||||
}
|
||||
if (!$biz_id) {
|
||||
$this->show_json(400, '未绑定狸车宝门店!');
|
||||
}
|
||||
@@ -257,6 +260,7 @@ class Lichene extends CI_Controller
|
||||
$this->mdCustomerTagdata->add_batch($add_tag);
|
||||
}
|
||||
}
|
||||
$data['c_id'] = $c_id;
|
||||
$this->show_json(200, '操作成功');
|
||||
}
|
||||
|
||||
@@ -304,7 +308,7 @@ class Lichene extends CI_Controller
|
||||
$this->load->library('receiver/customers_entity');
|
||||
$this->load->model('receiver/receiver_customers_model', 'mdCustomers');
|
||||
$this->load->model('receiver/receiver_customer_tagdata_model', 'mdCustomerTagdata');
|
||||
$up_data = [ 'of_id' => $params['of_id'], 'of2_id' => $params['of2_id']];
|
||||
$up_data = ['of_id' => $params['of_id'], 'of2_id' => $params['of2_id']];
|
||||
$this->mdCustomers->update($up_data, ['id' => $c_id]);
|
||||
$this->customers_entity->add_log($c_id, $userInfo['admin_id'], $userInfo['admin_name'], '修改用户基本信息');
|
||||
if ($params['taglList']) {
|
||||
|
||||
@@ -165,10 +165,6 @@
|
||||
mDialog.msg({content: "请输入手机号"});
|
||||
return
|
||||
}
|
||||
if (!/^1[3456789]\d{9}$/.test(that.userInfo.mobile)) {
|
||||
mDialog.msg({content: "请输入正确手机号"});
|
||||
return
|
||||
}
|
||||
$.ajax({
|
||||
url: '/h5/lichene/post_to_biz',
|
||||
type: 'post',
|
||||
@@ -185,6 +181,9 @@
|
||||
},
|
||||
success: function (re) {
|
||||
mDialog.msg({content: re.msg});
|
||||
if (re.code == 200) {
|
||||
that.userInfo.c_id = re.data['c_id'];
|
||||
}
|
||||
},
|
||||
complete: function () {
|
||||
loading && mDialog.close(loading); //关闭加载
|
||||
|
||||
Reference in New Issue
Block a user