}
public function details($id)
{
if (input('lang')==null||input('lang')=='ch'){
$data = Db::name('ch_information')
->where('id',$id)
->find();
$last = Db::name('ch_information')
->where("(sort = {$data['sort']} and create_time > {$data['create_time']}) or sort > {$data['sort']}")
->order(['sort'=>'asc','create_time'=>'asc'])
->find();
$next = Db::name('ch_information')
->where("(sort = {$data['sort']} and create_time < {$data['create_time']}) or sort < {$data['sort']}")
->order(['sort'=>'desc','create_time'=>'desc'])
->find();
// $where = [];
// if($id == 1){
// $where['id'] = ['not in',$id];
USER | www |
HOME | /home/www |
PATH_TRANSLATED | redirect:/index.php/informationDetails/150/150 |
PATH_INFO | /informationDetails/150 |
SCRIPT_NAME | /index.php |
REQUEST_URI | /informationDetails/150 |
QUERY_STRING | |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_URL | /informationDetails/150 |
REMOTE_PORT | 44100 |
SCRIPT_FILENAME | /www/wwwroot/www.bianfanyi.com/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/www.bianfanyi.com/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/www.bianfanyi.com/public |
REMOTE_ADDR | 3.92.1.156 |
SERVER_PORT | 80 |
SERVER_ADDR | 172.17.23.254 |
SERVER_NAME | www.bianfanyi.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | <address>Apache Server at www.bianfanyi.com Port 80</address> |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_HOST | www.bianfanyi.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php/informationDetails/150 |
REQUEST_TIME_FLOAT | 1711727907.2331 |
REQUEST_TIME | 1711727907 |