1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?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();
- }
- }
|