[8] ErrorException in Drama.php line 330

未定义数组下标: 1

  1. foreach($actorInfo['performer'] as $k =>$v){
  2. $star = srModel::where('name','=',$v[2])->find();
  3. array_push($p_new_arr,array('images'=>$v[0],'role_name'=>$v[1],'star_name'=>$v[2],'star_id'=>$star['id'],'role_intro'=>$v[3]));
  4. }
  5. }
  6. //其它演员
  7. if($actorInfo['other_actors']){
  8. $actorInfo['other_actors'] = json_decode($actorInfo['other_actors']);
  9. foreach($actorInfo['other_actors'] as $k1 =>$v1){
  10. $star1 = srModel::where('name','=',$v1[1])->find();
  11. if(isset($v1[2])){
  12. $role_intro =$v1[2];
  13. }else{
  14. $role_intro= '';
  15. }
  16. array_push($o_new_arr,array('role_name'=>$v1[0],'star_name'=>$v1[1],'star_id'=>$star1['id'],'role_intro'=>$role_intro));
  17. }
  18. }
  19. //相关看点

Call Stack

  1. in Drama.php line 330
  2. at Error::appError(8, 'Undefined offset: 1', '/www/wwwroot/pnkds.c...', 330, ['redis' => object(Redis), 'id' => '600', 'info' => ['id' => 600, 'title' => '幻乐森林', 'subtitle' => '幻乐森林', ...], ...]) in Drama.php line 330
  3. at Drama->actor()
  4. at ReflectionMethod->invokeArgs(object(Drama), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Drama), object(ReflectionMethod), ['id' => '600', 'convert' => false]) 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 432
  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 435
  18. at App->run() in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /www/wwwroot/pnkds.com/public/index.php
QUERY_STRING s=/drama/actor/600.html
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /drama/actor/600.html
DOCUMENT_URI /index.php
DOCUMENT_ROOT /www/wwwroot/pnkds.com/public
SERVER_PROTOCOL HTTP/1.1
REQUEST_SCHEME http
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.22.1
REMOTE_ADDR 172.70.39.155
REMOTE_PORT 11302
SERVER_ADDR 107.148.48.123
SERVER_PORT 80
SERVER_NAME 107.148.48.123
REDIRECT_STATUS 200
PATH_INFO
HTTP_HOST www.pnkds.com
HTTP_CONNECTION Keep-Alive
HTTP_ACCEPT_ENCODING gzip, br
HTTP_X_FORWARDED_FOR 3.238.62.124
HTTP_CF_RAY 86b708bd29223931-IAD
HTTP_X_FORWARDED_PROTO https
HTTP_CF_VISITOR {"scheme":"https"}
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_CF_CONNECTING_IP 3.238.62.124
HTTP_CDN_LOOP cloudflare
HTTP_CF_IPCOUNTRY US
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711622763.4236
REQUEST_TIME 1711622763
Environment Variablesempty
ThinkPHP Constants
VIEW_PATH /www/wwwroot/pnkds.com/application/index/view/pc/