Headoffice.php 518 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace app\h5\controller;
  3. use think\Controller;
  4. use think\Db;
  5. use think\Exception;
  6. class Headoffice extends Controller
  7. {
  8. public function index(){
  9. $sys_info =Db::name('config')
  10. ->where('name','web_site_title')
  11. ->find();
  12. $createTime = "2022-02-08"; // 系统运行开始日期
  13. $day = floor((time() - strtotime($createTime))/86400);
  14. $this->assign('sys_info',$sys_info);
  15. $this->assign('day',$day);
  16. return $this->fetch();
  17. }
  18. }