Store.php 857 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Niushop商城系统 - 团队十年电商经验汇集巨献!
  4. * =========================================================
  5. * Copy right 2019-2029 上海牛之云网络科技有限公司, 保留所有权利。
  6. * ----------------------------------------------
  7. * 官方网址: https://www.niushop.com
  8. * =========================================================
  9. */
  10. namespace addon\store\shopapi\controller;
  11. use app\model\store\Store as StoreModel;
  12. /**
  13. * 门店控制器
  14. */
  15. class Store extends BaseStoreApi
  16. {
  17. /**
  18. * 获取门店信息
  19. * @return false|string
  20. * @throws \app\exception\ApiException
  21. */
  22. public function info()
  23. {
  24. $store_model = new StoreModel();
  25. $store_info = $store_model->getStoreInfo([ [ 'store_id', '=', $this->store_id ] ]);
  26. return $this->response($store_info);
  27. }
  28. }