|
@@ -61,7 +61,13 @@ class Member extends Controller
|
|
|
if($phone = input('get.phone')) $where[] = ['m.phone','like','%'.$phone.'%'];
|
|
|
if($level_id = input('get.level_id')) $where[] = ['m.level_id','=',$level_id];
|
|
|
if($label_id = input('get.label_id')) $where[] = ['m.label','like','%|'.$label_id."|%"];
|
|
|
- if($account_type = input('get.account_type')) $where[] = ['m.account_type','=',$account_type];
|
|
|
+ if($account_type = input('get.account_type')) {
|
|
|
+ if($account_type == 3) {
|
|
|
+ $where[] = ['m.is_first','=',1];
|
|
|
+ }else{
|
|
|
+ $where[] = ['m.account_type','=',$account_type];
|
|
|
+ }
|
|
|
+ }
|
|
|
$field="m.id,m.openid,m.name,m.is_first,m.headimg,m.level_exp,m.phone,m.status,m.create_at,m.account_type,w.growth,w.integral,w.money,m.tag_id,label";
|
|
|
$create_at = input('create_at');
|
|
|
$query = $this->_query($this->table)
|