if(!in_array($url,$arr)){
$url = $arr[0];
}
$urlHd = $url;
$this->company_id = Db::table('cs_company')->where('company_pym', $urlHd)->value('id');
$this->company_name = Db::table('cs_company')->where('id', $this->company_id)->value('company_name');
$this->language = Db::table('cs_company')->where('id', $this->company_id)->value('language');
$b = json_decode($this->language);
$arr = [];
foreach($b as $k => $v){
$arr[$k] = $v;
}
$this->language = $arr;
}
public function index()
{
$url = $_SERVER['HTTP_HOST'];
$urlHd = $url;
USER | www |
HOME | /home/www |
HTTP_HOST | www.eiderwarmth.cn |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.csigroup.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.24.37.237 |
REMOTE_PORT | 58298 |
REMOTE_ADDR | 44.204.218.79 |
SERVER_SOFTWARE | nginx/1.20.2 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/www.csigroup.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /index/index/introduction |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/index/index/introduction |
SCRIPT_FILENAME | /www/wwwroot/www.csigroup.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711644897.1997 |
REQUEST_TIME | 1711644897 |