Commit d23d7ab0 authored by hujun's avatar hujun

修改客方

parent 5ee70cda
......@@ -189,10 +189,9 @@ class Users extends Model
$insert_data['user_phone'] = $data['user_phone'];
}
$insert_data['sex'] = $data['sex'];
$insert_data['agent_id'] = $data['agent_id'];
if ($id) {
//修改
$insert_data['agent_id']= $data['agents_id'];
$insert_data['update_time']= date('Y-m-d H:i:s');
$this->save($insert_data,['id'=>$id]);
$return_id = $id;
......@@ -200,7 +199,6 @@ class Users extends Model
//新增
$is_exist = $this->where('user_phone',$data['user_phone'])->count();
if (empty($is_exist)) {
$insert_data['agent_id'] = $data['agent_id'];
$insert_data['source'] = 20;
$insert_data['status'] = -1;
$insert_data['create_time'] = date('Y-m-d H:i:s');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment