Screen.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. }