AddressController.php 822 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * AddressController.php UTF-8
  4. * H5 WAP 地址管理
  5. *
  6. * @date : 2018/4/27 17:39
  7. *
  8. * @license 这不是一个自由软件,未经授权不许任何使用和传播。
  9. * @author : liuhongliang <lhl@huosdk.com>
  10. * @version : HUOSDK 8.0
  11. */
  12. namespace h5wap\wap\controller;
  13. use h5wap\common\controller\V2BaseController;
  14. use huo\controller\address\Address;
  15. class AddressController extends V2BaseController {
  16. public function _initialize() {
  17. parent::_initialize();
  18. }
  19. /**
  20. * H5WAP地址列表
  21. * http://doc.1tsdk.com/138?page_id=3269
  22. * 【域名】/wap/address/list
  23. */
  24. public function index() {
  25. $_parent_id = $this->request->param('parent_id/d', 0);
  26. $_rdata = (new Address())->getRegionData($_parent_id);
  27. $this->returnData($_rdata);
  28. }
  29. }