RegionController.php 574 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace mall\controllers;
  3. use common\components\dict;
  4. use common\components\util;
  5. use bizHd\saas\services\RegionService;
  6. use Yii;
  7. class RegionController extends BaseController
  8. {
  9. public $guestAccess = ['tree'];
  10. //地区相关信息 ssh 2020.1.14
  11. public function actionTree()
  12. {
  13. $regionTree = RegionService::tree();
  14. $mapKey = 'OFWBZ-2NTHP-EHNDD-LKWQY-GANM7-PXBJH';
  15. $hasMap = dict::getDict('hasMap');
  16. $out = ['tree' => $regionTree, 'thirdMapKey' => $mapKey, 'hasMap' => $hasMap];
  17. util::success($out);
  18. }
  19. }