控制台应用,yzncms本身基于tp5.1框架,里面的队列用不了,bug,坑
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Cmsbase.php 1.3KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Yzncms [ 御宅男工作室 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2018 http://yzncms.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: 御宅男 <530765310@qq.com>
  10. // +----------------------------------------------------------------------
  11. // +----------------------------------------------------------------------
  12. // | 前台控制模块
  13. // +----------------------------------------------------------------------
  14. namespace app\cms\controller;
  15. use app\member\controller\MemberBase;
  16. class Cmsbase extends MemberBase
  17. {
  18. //CMS模型相关配置
  19. protected $cmsConfig = [];
  20. //初始化
  21. protected function initialize()
  22. {
  23. parent::initialize();
  24. //Config::set('url_common_param', true);
  25. $this->cmsConfig = get_addon_config("cms");
  26. $this->assign("cms_config", $this->cmsConfig);
  27. if (!$this->cmsConfig['web_site_status']) {
  28. $this->error("站点已经关闭,请稍后访问~");
  29. }
  30. }
  31. }