Browse Source

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

kevin 1 năm trước cách đây
mục cha
commit
392a37f00b
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      common/models/FreeTemplate.php

+ 2 - 2
common/models/FreeTemplate.php

@@ -56,12 +56,12 @@ class FreeTemplate extends \common\components\ActiveRecord
 
 
     public function country()
     public function country()
     {
     {
-        return $this->hasOne(Countries::class, ['ID' => 'country_id']);
+        return $this->hasOne(Countries::class, ['id' => 'country_id']);
     }
     }
 
 
     public function currency()
     public function currency()
     {
     {
-        return $this->hasOne(Currency::class, ['ID' => 'currency_id']);
+        return $this->hasOne(Currency::class, ['id' => 'currency_id']);
     }
     }
 
 
     /**
     /**