123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- namespace app\h5\controller;
- use app\hander\HelpHander;
- use think\Controller;
- use think\Db;
- use think\Exception;
- class Screen extends Controller
- {
- public function phScreen(){
- $params = input();
- $orgInfo = Db::name('org')
- ->where('id',$params['orgId'])
- ->find();
- $this->assign('orgInfo',$orgInfo);
- // $logo = (new \app\model\Config())->getConfig('web_logo',$params['orgId']);
- $this->assign('logo','111');
- return $this->fetch();
- }
- public function project(){
- $params = input();
- if(empty($params['org_id'])){
- $this->error('参数错误');
- }
- $orgInfo = Db::name('org')
- ->where('id',$params['org_id'])
- ->find();
- $day = floor((time() - strtotime($orgInfo['create_time']))/86400);
- $orgInfo['day'] = $day;
- $orgInfo['img'] = model('Config')->getConfig('org_screen_img',$params['org_id']);
- $this->assign('info',$orgInfo);
- $this->assign('orgid',$params['org_id']);
- return $this->fetch();
- }
- public function patrolScreen(){
- $sys_info =Db::name('config')
- ->where('name','web_site_title')
- ->find();
- $this->assign('sys_info',$sys_info);
- return $this->fetch();
- }
- }
|