public function company($id){
$this->title = '企业详情';
$this->top_nav = self::COMPANY_LIB;
$info = CompanyModel::find((int)$id);
if (!$info) redirect("/");
$industry = $this->CategoryService->getCategoryList(CategoryModel::INDUSTRY_CODE);
$industry_list = array_column($industry->toArray(),"cate_name","id");
$this->assign("industry",$industry_list);
//服务的项目
$project = ProjectModel::where("user_id",$info->user_id)->where("status",1)
->limit(3)->order("create_time","desc")->select();
//开展的活动
$activity = ActivityModel::where("user_id",$info->user_id)->where("status",1)
->limit(3)->order("create_time","desc")->select();
$this->assign("info",$info);
$this->assign("project",$project);
$this->assign("activity",$activity);
return $this->fetch();
USER | www |
HOME | /home/www |
HTTP_HOST | www.ahwggcyjy.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.ahwggcyjy.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.26.178.73 |
REMOTE_PORT | 54784 |
REMOTE_ADDR | 44.223.5.218 |
SERVER_SOFTWARE | nginx/1.14.2 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/www.ahwggcyjy.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /index/index/company/id/6.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/index/index/company/id/6.html |
SCRIPT_FILENAME | /www/wwwroot/www.ahwggcyjy.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711722592.3821 |
REQUEST_TIME | 1711722592 |
APP_DEBUG | true |
CMF_ROOT | /www/wwwroot/www.ahwggcyjy.com/ |
APP_PATH | /www/wwwroot/www.ahwggcyjy.com/app/ |
WEB_ROOT | /www/wwwroot/www.ahwggcyjy.com/public/ |
HTMLPURIFIER_PREFIX | /www/wwwroot/www.ahwggcyjy.com/vendor/ezyang/htmlpurifier/library |