shish před 6 roky
rodič
revize
3e7565bf7f

+ 11 - 1
app/www/controllers/ApplyController.php

@@ -3,6 +3,7 @@
 namespace www\controllers;
 
 use biz\saas\services\ApplyService;
+use biz\saas\services\RegionService;
 use common\components\util;
 use Yii;
 use yii\web\Controller;
@@ -50,7 +51,7 @@ class ApplyController extends BaseController
 		}
 		util::success($data);
 	}
-
+	
 	//申请状态
 	public function actionApplyStatus()
 	{
@@ -59,4 +60,13 @@ class ApplyController extends BaseController
 		util::success(['status' => $status]);
 	}
 
+	//地图相关信息 shish 2020.1.14
+	public function actionRegionRelate()
+	{
+		$regionTree = RegionService::tree();
+		$mapKey = 'OFWBZ-2NTHP-EHNDD-LKWQY-GANM7-PXBJH';
+		$out = ['region' => $regionTree, 'txMapKey' => $mapKey];
+		util::success($out);
+	}
+	
 }

+ 23 - 0
app/www/controllers/RegionController.php

@@ -0,0 +1,23 @@
+<?php
+
+namespace www\controllers;
+
+use biz\saas\services\RegionService;
+use common\components\util;
+use Yii;
+use yii\web\Controller;
+
+
+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);
+	}
+
+}