shish 6 лет назад
Родитель
Сommit
e90a357d31
1 измененных файлов с 20 добавлено и 0 удалено
  1. 20 0
      app/business/controllers/RegionController.php

+ 20 - 0
app/business/controllers/RegionController.php

@@ -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);
+	}
+	
+}