public function list()
{
$type = $this->request->param('type',0,'intval');
$this->assign('type', $type);
$NavMenuModel = new NavMenuModel();
$pro_nav_list = $NavMenuModel->order('list_order','asc')->where(['nav_id'=>1,'parent_id'=>5,'status'=>1])->field('name,href,highlight,target')->select()->toArray();
$this->assign('pro_nav_list', $pro_nav_list);
$NavMenuModel = new NavMenuModel();
$pro_nav_one = $NavMenuModel->where(['nav_id'=>1,'status'=>1,'parent_id'=>5,'highlight'=>$type])->field('name,des,href,name_en,target,highlight')->find()->toArray();
$this->assign('pro_nav_one', $pro_nav_one);
if($type==3){
$check_list = PortalArticleModel::where(['is_published'=>1,'article_type'=>3])->order(['is_top'=>'DESC','list_order'=>'ASC','create_time'=>'DESC'])->field('id,article_type,title,desc,create_time,thumbnail')->paginate(6);
foreach($check_list as $k=>$v){
$check_list[$k]['year'] = date('Y',$v['create_time']);
$check_list[$k]['md'] = date('m-d',$v['create_time']);
}
depart_id | 1 |
PHPSESSID | b86cf945e1a56b0772fc737f6db62b2a |
last_time | 1716889979 |
USER | nobody |
HOME | / |
HTTP_COOKIE | PHPSESSID=b86cf945e1a56b0772fc737f6db62b2a |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.fengyuanhuaxue.com |
HTTP_USER_AGENT | Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.fengyuanhuaxue.com |
SERVER_PORT | 443 |
SERVER_ADDR | 10.19.93.224 |
REMOTE_PORT | 42558 |
REMOTE_ADDR | 23.231.76.26 |
SERVER_SOFTWARE | nginx/1.18.0 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /data/user/htdocs/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /portal/news/list.html?depart_id=1 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=//portal/news/list.html&depart_id=1 |
PATH_INFO | |
SCRIPT_FILENAME | /data/user/htdocs/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1716890035.279 |
REQUEST_TIME | 1716890035 |