|
|
@@ -0,0 +1,20 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+namespace business\controllers;
|
|
|
+
|
|
|
+use biz\saas\services\RegionService;
|
|
|
+use common\components\util;
|
|
|
+
|
|
|
+class RegionController extends BaseController
|
|
|
+{
|
|
|
+
|
|
|
+ //地区相关信息 shish 2020.1.14
|
|
|
+ public function actionTree()
|
|
|
+ {
|
|
|
+ $regionTree = RegionService::tree();
|
|
|
+ $mapKey = 'OFWBZ-2NTHP-EHNDD-LKWQY-GANM7-PXBJH';
|
|
|
+ $out = ['tree' => $regionTree, 'txMapKey' => $mapKey];
|
|
|
+ util::success($out);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|