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_HOST | c2.funcmf.com |
HTTP_ACCEPT_ENCODING | gzip, br, zstd, deflate |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | c1.funcmf.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.18.75.237 |
REMOTE_PORT | 32081 |
REMOTE_ADDR | 18.218.47.83 |
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 | 1734784355.1162 |
REQUEST_TIME | 1734784355 |