|
@@ -50,8 +50,12 @@ class Member extends Controller
|
|
|
$money_order = input('money_order') == 1 ? 'asc' : 'desc';
|
|
|
$query = $this->_query($this->table)->where('is_deleted',0)
|
|
|
->like('name,phone')
|
|
|
- ->equal('status,vip,group,is_open_official_DDC');
|
|
|
- $query->dateBetween('create_at')->order("id $id_order ,integral $money_order")->page();
|
|
|
+ ->equal('status,vip,group,is_open_official_DDC')->dateBetween('create_at');
|
|
|
+ if(input('money_order')){
|
|
|
+ $query->order("money $money_order")->page();
|
|
|
+ }else{
|
|
|
+ $query->order("id $id_order")->page();
|
|
|
+ }
|
|
|
}
|
|
|
/**
|
|
|
* 数据列表处理
|