|
|
@@ -18,6 +18,7 @@ use common\models\ArticleCategory;
|
|
|
use common\models\BaUser;
|
|
|
use common\models\DecOrder;
|
|
|
use common\models\DecRole;
|
|
|
+use common\models\OpenBank;
|
|
|
use common\models\Order;
|
|
|
use common\models\OrderGoods;
|
|
|
use common\models\PerfPeriod;
|
|
|
@@ -412,4 +413,21 @@ class SiteController extends BaseController
|
|
|
|
|
|
return static::notice(['data' => $data]);
|
|
|
}
|
|
|
+
|
|
|
+ public function actionBanks()
|
|
|
+ {
|
|
|
+ // 默认国家
|
|
|
+ $countryId = \Yii::$app->request->get('countryId');
|
|
|
+ if (!$countryId) {
|
|
|
+ return static::notice(Yii::t('app', 'countryDoesNotSelect'), 400);
|
|
|
+ }
|
|
|
+
|
|
|
+ $data = OpenBank::find()
|
|
|
+ ->where('STATUS=:STATUS AND COUNTRY_ID=:COUNTRY_ID', [':STATUS' => 1, ':COUNTRY_ID' => $countryId])
|
|
|
+ ->orderBy('LIST_ORDER ASC')
|
|
|
+ ->asArray()
|
|
|
+ ->all();
|
|
|
+
|
|
|
+ return static::notice(['data' => $data]);
|
|
|
+ }
|
|
|
}
|