Commit 779f221a authored by hujun's avatar hujun

新增注册时间

parent ed26f2ce
...@@ -303,6 +303,7 @@ class Member extends Basic ...@@ -303,6 +303,7 @@ class Member extends Basic
$result = $this->user->save($insert_data, ['id'=>$user_data['id']]); //注册用户 $result = $this->user->save($insert_data, ['id'=>$user_data['id']]); //注册用户
$id = empty($result) ? 0 : $user_data['id']; $id = empty($result) ? 0 : $user_data['id'];
} else { } else {
$insert_data['registration_time'] = $date;
$this->user->save($insert_data); //注册用户 $this->user->save($insert_data); //注册用户
$id = $this->user->id; $id = $this->user->id;
} }
......
...@@ -80,7 +80,7 @@ class Member extends Basic{ ...@@ -80,7 +80,7 @@ class Member extends Basic{
} }
} }
$fields = 'a.id,a.user_nick,a.user_phone,a.user_pic,a.create_time,a.user_pswd,a.referrer_id,a.referrer_source,a.user_name,a.last_login_ip,a.status'; $fields = 'a.id,a.user_nick,a.user_phone,a.user_pic,a.create_time,a.user_pswd,a.referrer_id,a.registration_time,a.user_name,a.last_login_ip,a.status';
$data['list'] = $this->user->getUserAgent($pageNo, $pageSize, 'a.id DESC', $fields, $where); $data['list'] = $this->user->getUserAgent($pageNo, $pageSize, 'a.id DESC', $fields, $where);
$data['total'] = $this->user->getUserAgentTotal($where); $data['total'] = $this->user->getUserAgentTotal($where);
return $this->response($data['status'], $data['msg'], $data); return $this->response($data['status'], $data['msg'], $data);
......
...@@ -98,6 +98,7 @@ ...@@ -98,6 +98,7 @@
<th class="text-center">App状态</th> <th class="text-center">App状态</th>
<th class="text-center">是否登录过</th> <th class="text-center">是否登录过</th>
<th class="text-center">昵称</th> <th class="text-center">昵称</th>
<th class="text-center">注册时间</th>
<th class="text-center">操作</th> <th class="text-center">操作</th>
</tr> </tr>
</thead> </thead>
......
...@@ -38,6 +38,11 @@ ...@@ -38,6 +38,11 @@
[%= it[item]["user_name"] %] [%= it[item]["user_name"] %]
[% } %] [% } %]
</td> </td>
<td>
[% if (it[item]['registration_time'] != null){ %]
[%= it[item]["registration_time"] %]
[% } %]
</td>
<td> <td>
<a class="btn1 btn-success caozuo" href="#modal-record" data-toggle="modal" data-id='[%= it[item]["id"] %]'> <a class="btn1 btn-success caozuo" href="#modal-record" data-toggle="modal" data-id='[%= it[item]["id"] %]'>
编辑 编辑
......
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