$pictures['data'][$k]['category_name'] = cache('categorys')[$v['category_id']]['name'];}return $pictures;}/*** 获取详情*/function get_details($id){$result = $this->get($id);$picture = $result->toArray();$next = $this->where('id','<',$id)->order('id desc')->find();$prev = $this->where('id','>',$id)->order('id asc')->find();$prev = $prev?$prev->toArray():array('title'=>'返回列表','url'=>url('index/picture/lists',['category_id'=>$picture['category_id']]));$next = $next?$next->toArray():array('title'=>'返回列表','url'=>url('index/picture/lists',['category_id'=>$picture['category_id']]));$picture['prev'] = array('title'=>$prev['title'],'url'=>$prev['url']);$picture['next'] = array('title'=>$next['title'],'url'=>$next['url']);return $picture;}
| think | { "member": { "id": 0 } } |
| USER | www |
| HOME | /home/www |
| 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 | /index/picture/show/id/index.html |
| HTTP_HOST | shengkangfood.com |
| REDIRECT_STATUS | 200 |
| SERVER_NAME | shengkangfood.com |
| SERVER_PORT | 443 |
| SERVER_ADDR | 154.83.12.235 |
| REMOTE_PORT | 33206 |
| REMOTE_ADDR | 18.97.14.81 |
| SERVER_SOFTWARE | nginx/1.26.1 |
| GATEWAY_INTERFACE | CGI/1.1 |
| HTTPS | on |
| REQUEST_SCHEME | https |
| SERVER_PROTOCOL | HTTP/2.0 |
| DOCUMENT_ROOT | /www/wwwroot/shengkangfood.com |
| DOCUMENT_URI | /index.php/index/picture/show/id/index.html |
| REQUEST_URI | /index.php/index/picture/show/id/index.html |
| SCRIPT_NAME | /index.php |
| CONTENT_LENGTH | |
| CONTENT_TYPE | |
| REQUEST_METHOD | GET |
| QUERY_STRING | |
| SCRIPT_FILENAME | /www/wwwroot/shengkangfood.com/index.php |
| FCGI_ROLE | RESPONDER |
| PHP_SELF | /index.php/index/picture/show/id/index.html |
| REQUEST_TIME_FLOAT | 1763219526.5287 |
| REQUEST_TIME | 1763219526 |
| LZ_VERSION | v1.1.5 |
| APP_PATH | /www/wwwroot/shengkangfood.com/application/ |
| THINK_VERSION | 5.0.3 |
| THINK_START_TIME | 1763219526.5295 |
| THINK_START_MEM | 404240 |
| EXT | .php |
| DS | / |
| THINK_PATH | /www/wwwroot/shengkangfood.com/thinkphp/ |
| LIB_PATH | /www/wwwroot/shengkangfood.com/thinkphp/library/ |
| CORE_PATH | /www/wwwroot/shengkangfood.com/thinkphp/library/think/ |
| TRAIT_PATH | /www/wwwroot/shengkangfood.com/thinkphp/library/traits/ |
| ROOT_PATH | /www/wwwroot/shengkangfood.com/ |
| EXTEND_PATH | /www/wwwroot/shengkangfood.com/extend/ |
| VENDOR_PATH | /www/wwwroot/shengkangfood.com/vendor/ |
| RUNTIME_PATH | /www/wwwroot/shengkangfood.com/runtime/ |
| LOG_PATH | /www/wwwroot/shengkangfood.com/runtime/log/ |
| CACHE_PATH | /www/wwwroot/shengkangfood.com/runtime/cache/ |
| TEMP_PATH | /www/wwwroot/shengkangfood.com/runtime/temp/ |
| CONF_PATH | /www/wwwroot/shengkangfood.com/application/ |
| CONF_EXT | .php |
| ENV_PREFIX | PHP_ |
| IS_CLI | false |
| IS_WIN | false |