[8] ErrorException in YikeController.php line 1158

未定义数组索引: videos

  1. } else {
  2. $recommends = array_rand($recommend, 4);
  3. foreach ($recommends as $k => $v) {
  4. $re_comend[] = $recommend[$v];
  5. }
  6. }
  7. }
  8. $result = Db::name('celebrity_type')->where(['status' => 0,'id' => $lx_id])->find();
  9. $res['v_name'] = json_decode($res['video_name'], true);
  10. $res['v_video'] = json_decode($res['videos'], true);
  11. $res['type'] = $type;
  12. if (session('member')) {
  13. $user_id = session('member')['id'];
  14. $collection = Db::name('class_collection')->where(['user_id' => $user_id, 'type' => $type, 'class_id' => $id, 'status' => 0])->find();
  15. if ($collection) {
  16. $a = 1;//已收藏
  17. } else {
  18. $a = 2;//未收藏
  19. }

Call Stack

  1. in YikeController.php line 1158
  2. at Error::appError(8, 'Undefined index: vid...', '/home/wwwroot/zhongh...', 1158, ['admin_menu' => [['id' => 212, 'parent_id' => 211, 'type' => 1, ...], ['id' => 213, 'parent_id' => 211, 'type' => 1, ...], ['id' => 214, 'parent_id' => 211, 'type' => 1, ...]], 'type' => '1', 'lx_id' => '8', ...]) in YikeController.php line 1158
  3. at YikeController->series()
  4. at ReflectionMethod->invokeArgs(object(YikeController), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(YikeController), object(ReflectionMethod), ['type' => '1', 'id' => '20', 'lx_id' => '8', ...]) in Module.php line 132
  6. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  7. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  8. at Middleware->think\{closure}(object(Request))
  9. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  10. at Middleware->dispatch(object(Request), 'controller') in Module.php line 137
  11. at Module->exec() in Dispatch.php line 168
  12. at Dispatch->run() in App.php line 484
  13. at App->think\{closure}(object(Request), object(Closure), null)
  14. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  15. at Middleware->think\{closure}(object(Request))
  16. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  17. at Middleware->dispatch(object(Request)) in App.php line 487
  18. at App->run() in index.php line 33

Environment Variables

GET Data
type 1
id 20
lx_id 8
class_type 2
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /www/wwwroot/zhonghuameiwang.com/public/index.php
QUERY_STRING s=/api/yike/series.html&type=1&id=20&lx_id=8&class_type=2
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /api/yike/series.html?type=1&id=20&lx_id=8&class_type=2
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 34.230.84.106
REMOTE_PORT 58780
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 1710842198.7869
REQUEST_TIME 1710842198
Environment Variablesempty
ThinkPHP Constants
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
0.127939s