Ver Fonte

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

zhangl há 1 ano atrás
pai
commit
9cfe4c5ab9

+ 1 - 1
common/models/Region.php

@@ -83,7 +83,7 @@ class Region extends \common\components\ActiveRecord
      * @return array|\yii\db\ActiveRecord[]
      */
     public static function getAllData(){
-        return static::find()->where('1=1')->orderBy('CREATED_AT ASC')->indexBy('REGION_CODE')->asArray()->all();
+        return static::find()->where('STATUS=1')->orderBy('REGION_NAME ASC')->indexBy('REGION_CODE')->asArray()->all();
     }
 
     /**

+ 1 - 1
frontendApi/modules/v1/controllers/UserController.php

@@ -599,7 +599,7 @@ class UserController extends BaseController {
         // 银行开户行
         $allOpenBank = OpenBank::find()
             ->where('STATUS=:STATUS AND COUNTRY_ID=:COUNTRY_ID', [':STATUS' => 1, ':COUNTRY_ID' => $countryId])
-            ->orderBy('LIST_ORDER ASC')
+            ->orderBy('BANK_NAME ASC')
             ->asArray()
             ->all();