Explorar o código

feat: NG-15: 新会员注册时增加国家与语言选项.

kevin hai 1 ano
pai
achega
76b511a92c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      common/models/Countries.php

+ 1 - 1
common/models/Countries.php

@@ -78,7 +78,7 @@ class Countries extends \common\components\ActiveRecord
      */
     public static function getAllData()
     {
-        return static::find()->where('1=1')->orderBy('ACTIVE DESC, NAME ASC')->asArray()->all();
+        return static::find()->where('ACTIVE=1')->orderBy('ACTIVE DESC, NAME ASC')->asArray()->all();
     }
 
     /**