|
|
@@ -127,6 +127,22 @@ class ConfigController extends BaseController
|
|
|
return static::notice($data);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 无需登录的行政区划列表
|
|
|
+ * @return mixed
|
|
|
+ * @throws \yii\web\HttpException
|
|
|
+ */
|
|
|
+ public function actionNoLoginRegionList() {
|
|
|
+ $countryId = \Yii::$app->request->get('countryId');
|
|
|
+ if (!$countryId) {
|
|
|
+ return static::notice('countryId is required', 400);
|
|
|
+ }
|
|
|
+
|
|
|
+ $data = Region::getByCountryId($countryId);
|
|
|
+
|
|
|
+ return static::notice($data);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 获取一条收货地址
|
|
|
* @return mixed
|
|
|
@@ -291,4 +307,4 @@ class ConfigController extends BaseController
|
|
|
}
|
|
|
return static::notice(Yii::t('app', 'illegalRequest'), 400);
|
|
|
}
|
|
|
-}
|
|
|
+}
|