Commit ac63dfb9 by 冷斌

update

parent 3df9764d
......@@ -130,7 +130,7 @@ class VipController extends AdminbaseController {
function user_index(){
$map = [];
if($_REQUEST['keyword']!=''){
$map['uid|user_nicename']=array("like","%".$_REQUEST['keyword']."%");
$map['cmf_users_vip.uid|cmf_users.user_nicename']=array("like","%".$_REQUEST['keyword']."%");
$_GET['keyword']=$_REQUEST['keyword'];
}
$Vip_u=M("users_vip");
......@@ -138,7 +138,8 @@ class VipController extends AdminbaseController {
$page = $this->page($count, 20);
$lists = $Vip_u
->where($map)
->order("endtime desc")
->join("left join cmf_users u on u.id=cmf_users_vip.uid")
->order("cmf_users_vip。endtime desc")
->limit($page->firstRow . ',' . $page->listRows)
->select();
foreach($lists as $k=>$v){
......
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