|
|
@@ -176,4 +176,20 @@ class SiteController extends BaseController
|
|
|
|
|
|
return static::notice($data);
|
|
|
}
|
|
|
+
|
|
|
+ public function actionCountries()
|
|
|
+ {
|
|
|
+ // 国家列表
|
|
|
+ $data = Cache::getCountries();
|
|
|
+
|
|
|
+ return static::notice(['data' => $data]);
|
|
|
+ }
|
|
|
+
|
|
|
+ public function actionLanguages()
|
|
|
+ {
|
|
|
+ // 语言列表
|
|
|
+ $data = Cache::getLanguages();
|
|
|
+
|
|
|
+ return static::notice(['data' => $data]);
|
|
|
+ }
|
|
|
}
|