public function show(){
$issubmit = '';
$id = $this->request->get('id')?:$this->request->param('id/d');
if($id){
$list = Forum::where('status',1)->find($id);
}else{
$list = Forum::where('cateid',$this->cateid)->find();
}
if(!$list || !$this->tablename) {
throw new \Exception('页面未找到');
}
// if(!$list) $this->redirect(__u('error/notice',['message'=>'NotFind'],true,request()->domain()));
// if(!$this->tablename) $this->redirect(__u('error/notice',['message'=>'NotFindTable'],true,request()->domain()));
$tableContent = Db::name($this->tablename)->find($list['id']);
if($tableContent){
$field = Field::where('moduleid',$this->moduleid)->column('field','field');
$field = array_merge($this->fieldList,$field);
foreach ($tableContent as $k=>$item) {
if(is_string($item) && json_decode($item,true) && Str::contains($item,'{')){
site_lang | zh-cn |
USER | www |
HOME | /home/www |
HTTP_CONNECTION | Keep-Alive |
HTTP_HOST | c2.funcmf.com |
HTTP_ACCEPT_ENCODING | br,gzip |
HTTP_ACCEPT_LANGUAGE | en-US,en;q=0.5 |
HTTP_ACCEPT | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
HTTP_USER_AGENT | CCBot/2.0 (https://commoncrawl.org/faq/) |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | c1.funcmf.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.18.75.237 |
REMOTE_PORT | 57382 |
REMOTE_ADDR | 44.222.134.250 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/c1.funcmf.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /show/23/426 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/show/23/426 |
SCRIPT_FILENAME | /www/wwwroot/c1.funcmf.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1728526946.9935 |
REQUEST_TIME | 1728526946 |