优化首页显示问题

master
chenzhi 3 years ago
parent 4628ee8a00
commit 86fb9ac67d

@ -23,7 +23,7 @@ class IndexController extends AdminController {
public function index() public function index()
{ {
if(session('user_auth.uid')){ if(session('user_auth.uid')){
$data=M('Member') $data=SM('Member')
->field('uid,nickname,username,us.last_login_time,us.last_login_ip,login') ->field('uid,nickname,username,us.last_login_time,us.last_login_ip,login')
->join('sys_ucenter_member as us on sys_member.uid = us.id') ->join('sys_ucenter_member as us on sys_member.uid = us.id')
->where(array('uid'=>session('user_auth.uid'))) ->where(array('uid'=>session('user_auth.uid')))

Loading…
Cancel
Save