Просмотр исходного кода

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

kevin 1 год назад
Родитель
Сommit
3db5985ee5
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      common/models/Countries.php

+ 5 - 5
common/models/Countries.php

@@ -78,7 +78,7 @@ class Countries extends \common\components\ActiveRecord
      */
     public static function getAllData()
     {
-        return static::find()->with('currency')->where('ACTIVE=1')->orderBy('ACTIVE DESC, NAME ASC')->asArray()->all();
+        return static::find()->where('ACTIVE=1')->orderBy('ACTIVE DESC, NAME ASC')->asArray()->all();
     }
 
     /**
@@ -118,8 +118,8 @@ class Countries extends \common\components\ActiveRecord
      * 关联currency.
      * @return \yii\db\ActiveQuery
      */
-    public function currency()
-    {
-        return $this->hasOne(Currency::className(), ['ID' => 'LOCAL_CURRENCY_ID']);
-    }
+//    public function currency()
+//    {
+//        return $this->hasOne(Currency::className(), ['ID' => 'LOCAL_CURRENCY_ID']);
+//    }
 }