Commit 1e062124 authored by hujun's avatar hujun

user_name

parent 49d7cd42
......@@ -225,6 +225,9 @@ class Users extends Model
if (!empty($data['user_name'])) {
$insert_data['user_name'] = $data['user_name'];
}
if (!empty($data['user_nick'])) {
$insert_data['user_nick'] = $data['user_nick'];
}
if (!empty($data['user_phone'])) {
$insert_data['user_phone'] = $data['user_phone'];
}
......@@ -277,7 +280,7 @@ class Users extends Model
public function getClient($id)
{
if ($id) {
$field = "a.id as user_id,a.user_nick,a.user_phone,a.sex,a.agent_id,a.industry_type,a.price_demand,a.area_demand,a.create_time,b.name,b.phone";
$field = "a.id as user_id,a.user_nick,a.user_name,a.user_phone,a.sex,a.agent_id,a.industry_type,a.price_demand,a.area_demand,a.create_time,b.name,b.phone";
$data = $this->field($field)
->alias('a')
......
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