Config.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * Config.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\Config as ConfigModel;
  18. class Config extends BaseApi
  19. {
  20. /**
  21. * 详情信息
  22. */
  23. public function defaultimg()
  24. {
  25. $upload_config_model = new ConfigModel();
  26. $res = $upload_config_model->getDefaultImg();
  27. if (!empty($res['data']['value'])) {
  28. return $this->response($this->success($res['data']['value']));
  29. } else {
  30. return $this->response($this->error());
  31. }
  32. }
  33. /**
  34. * 版权信息
  35. */
  36. public function copyright()
  37. {
  38. $config_model = new ConfigModel();
  39. $res = $config_model->getCopyright();
  40. return $this->response($this->success($res['data']['value']));
  41. }
  42. }