} else {
$recommends = array_rand($recommend, 10);
foreach ($recommends as $k => $v) {
$re_comend[] = $recommend[$v];
}
}
}
$result = $reTables->where(['status' => 0, 'id' => $lx_id])->find();
$res['v_name'] = json_decode($res['video_name'], true);
$res['v_video'] = json_decode($res['videos'], true);
$res['times'] = json_decode($res['times'], true);
$res['type'] = $type;
if (session('member')) {
$user_id = session('member')['id'];
$collection = $result = Db::name('class_collection')->where(['user_id' => $user_id, 'type' => $type, 'class_id' => $id, 'status' => 0])->find();
if ($collection) {
$a = 1;//已收藏
} else {
$a = 2;//未收藏
type | 1 |
id | 34 |
lx_id | 1 |
class_type | 1 |
test | 5 |
USER | www |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /www/wwwroot/zhonghuameiwang.com/public/index.php |
QUERY_STRING | s=/api/yike/detail.html&type=1&id=34&lx_id=1&class_type=1&test=5 |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /api/yike/detail.html?type=1&id=34&lx_id=1&class_type=1&test=5 |
DOCUMENT_URI | /index.php |
DOCUMENT_ROOT | /www/wwwroot/zhonghuameiwang.com/public |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_SCHEME | http |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.16.1 |
REMOTE_ADDR | 18.207.104.87 |
REMOTE_PORT | 43414 |
SERVER_ADDR | 211.149.206.106 |
SERVER_PORT | 80 |
SERVER_NAME | zhonghuameiwang.com |
REDIRECT_STATUS | 200 |
PATH_INFO | |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | zhonghuameiwang.com |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711711687.7105 |
REQUEST_TIME | 1711711687 |
APP_DEBUG | true |
CMF_ROOT | /home/wwwroot/zhonghuameiwang.com/ |
CMF_DATA | /home/wwwroot/zhonghuameiwang.com/data/ |
APP_PATH | /home/wwwroot/zhonghuameiwang.com/app/ |
WEB_ROOT | /home/wwwroot/zhonghuameiwang.com/public/ |
HTMLPURIFIER_PREFIX | /home/wwwroot/zhonghuameiwang.com/vendor/ezyang/htmlpurifier/library |