瀏覽代碼

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

kevin 1 年之前
父節點
當前提交
76b511a92c
共有 1 個文件被更改,包括 1 次插入1 次删除
  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();
     }
 
     /**