shish 3 anos atrás
pai
commit
0930b498c5

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

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

+ 5 - 0
app-mall/controllers/TestController.php

@@ -11,4 +11,9 @@ use Yii;
 class TestController extends BaseController
 {
 
+    public function actionIndex()
+    {
+        echo 'aaa';
+    }
+
 }