Screen.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace app\h5\controller;
  3. use app\hander\HelpHander;
  4. use think\Controller;
  5. use think\Db;
  6. use think\Exception;
  7. class Screen extends Controller
  8. {
  9. public function phScreen(){
  10. $params = input();
  11. $orgInfo = Db::name('org')
  12. ->where('id',$params['orgId'])
  13. ->find();
  14. $this->assign('orgInfo',$orgInfo);
  15. // $logo = (new \app\model\Config())->getConfig('web_logo',$params['orgId']);
  16. $this->assign('logo','111');
  17. return $this->fetch();
  18. }
  19. public function project(){
  20. $params = input();
  21. if(empty($params['org_id'])){
  22. $this->error('参数错误');
  23. }
  24. $orgInfo = Db::name('org')
  25. ->where('id',$params['org_id'])
  26. ->find();
  27. $day = floor((time() - strtotime($orgInfo['create_time']))/86400);
  28. $orgInfo['day'] = $day;
  29. $orgInfo['img'] = model('Config')->getConfig('org_screen_img',$params['org_id']);
  30. $this->assign('info',$orgInfo);
  31. $this->assign('orgid',$params['org_id']);
  32. return $this->fetch();
  33. }
  34. public function patrolScreen(){
  35. $sys_info =Db::name('config')
  36. ->where('name','web_site_title')
  37. ->find();
  38. $this->assign('sys_info',$sys_info);
  39. return $this->fetch();
  40. }
  41. }