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