|
@@ -13,7 +13,7 @@ use Yii;
|
13
|
13
|
//use yii\captcha\Captcha;
|
14
|
14
|
class User extends Common
|
15
|
15
|
{
|
16
|
|
-
|
|
16
|
+ public $order = 'status ASC';
|
17
|
17
|
public $repassword; //确认密码
|
18
|
18
|
public $verifycode;
|
19
|
19
|
// public function behaviors()
|
|
@@ -74,6 +74,7 @@ class User extends Common
|
74
|
74
|
$query = self::find();
|
75
|
75
|
$query->select($field);
|
76
|
76
|
$query = $this->Setonditions($query);
|
|
77
|
+ $query->orderBy($this->order);
|
77
|
78
|
if(Yii::$app->session['user_info']['user'] != 'admin'){
|
78
|
79
|
$query->andFilterWhere(['not',"user = 'admin'"]);
|
79
|
80
|
}
|