|
@@ -48,8 +48,17 @@ class Index extends Api
|
|
|
}
|
|
|
//属性
|
|
|
$attribute = input('attribute','all');
|
|
|
- if($attribute != 'all' && $attribute != 'BOTH'){
|
|
|
- $where['user.attribute'] = $attribute;
|
|
|
+ if($attribute != 'all'){
|
|
|
+
|
|
|
+ if($attribute == 'EE'){
|
|
|
+ $where['user.attribute'] = ['IN',['EE','BOTH']];
|
|
|
+ }
|
|
|
+ if($attribute == 'ER'){
|
|
|
+ $where['user.attribute'] = ['IN',['ER','BOTH']];
|
|
|
+ }
|
|
|
+ if($attribute == 'BOTH'){
|
|
|
+ $where['user.attribute'] = 'BOTH';
|
|
|
+ }
|
|
|
}
|
|
|
//排除黑名单的
|
|
|
$where_black = [];
|