Website.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * Index.php
  4. * Niushop商城系统 - 团队十年电商经验汇集巨献!
  5. * =========================================================
  6. * Copy right 2015-2025 山西牛酷信息科技有限公司, 保留所有权利。
  7. * ----------------------------------------------
  8. * 官方网址: http://www.niushop.com.cn
  9. * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用。
  10. * 任何企业和个人不允许对程序代码以任何形式任何目的再发布。
  11. * =========================================================
  12. * @author : niuteam
  13. * @date : 2015.1.17
  14. * @version : v1.0.0.0
  15. */
  16. namespace app\api\controller;
  17. use app\model\web\WebSite as WebsiteModel;
  18. /**
  19. * 网站设置
  20. * @author Administrator
  21. *
  22. */
  23. class Website extends BaseApi
  24. {
  25. /**
  26. * 基础信息
  27. */
  28. public function info()
  29. {
  30. $site_id = isset($this->params['site_id']) ? $this->params['site_id'] : 0;
  31. $filed = 'title,logo,desc,web_qrcode,web_status,close_reason,wap_status';
  32. $website_model = new WebsiteModel();
  33. $info = $website_model->getWebSite([ [ 'site_id', '=', $site_id ] ], $filed);
  34. return $this->response($info);
  35. }
  36. /**
  37. * 列表信息
  38. */
  39. public function lists()
  40. {
  41. }
  42. /**
  43. * 树状结构信息
  44. */
  45. public function tree()
  46. {
  47. }
  48. }