1234567891011121314151617181920212223242526 |
- <?php
- namespace app\h5\controller;
- use think\Controller;
- use think\Db;
- use think\Exception;
- class Headoffice extends Controller
- {
- public function index(){
- $sys_info =Db::name('config')
- ->where('name','web_site_title')
- ->find();
- $createTime = "2022-02-08"; // 系统运行开始日期
- $day = floor((time() - strtotime($createTime))/86400);
- $this->assign('sys_info',$sys_info);
- $this->assign('day',$day);
- return $this->fetch();
- }
- }
|