[8] ErrorException in Index.php line 67

未定义数组索引: sx1

  1. $arr[$k]['jg'] = $v['sz_answer' . $i];
  2. $arr[$k]['jg_answer'][0] = 0;
  3. if ($v['sz' . $i] !== '杀' . $da . $dan) {
  4. $arr[$k]['jg_answer'][0] = 1;
  5. }
  6. }
  7. //双项
  8. if ($type == 3) {
  9. $arr[$k]['yc'] = explode(',', $v['sx' . $i]);
  10. $arr[$k]['jg'] = $v['sx_answer' . $i];
  11. $arr[$k]['jg_answer'][0] = 0;
  12. if ($v['sx' . $i] == $da) {
  13. $arr[$k]['jg_answer'][0] = 1;
  14. }
  15. if ($v['sx' . $i] == $dan) {
  16. $arr[$k]['jg_answer'][0] = 1;
  17. }
  18. }

Call Stack

  1. in Index.php line 67
  2. at Error::appError(8, 'Undefined index: sx1', '/www/wwwroot/fei28.c...', 67, ['type' => '3', 'i' => '1', 'data' => [['id' => 21, 'expect' => '2932012', 'opencode' => '', ...], ['id' => 20, 'expect' => '2932011', 'opencode' => '1,2,5', ...]], ...]) in Index.php line 67
  3. at Index->index()
  4. at ReflectionMethod->invokeArgs(object(Index), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['type' => '3', 'i' => '1']) in Module.php line 131
  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 136
  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 Data
type 3
i 1
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
SCRIPT_NAME /index.php
REQUEST_URI /?type=3&i=1
QUERY_STRING type=3&i=1
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REMOTE_PORT 54778
SCRIPT_FILENAME /www/wwwroot/fei28.com/public/index.php
SERVER_ADMIN [email protected]
CONTEXT_DOCUMENT_ROOT /www/wwwroot/fei28.com/public
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /www/wwwroot/fei28.com/public
REMOTE_ADDR 172.70.39.205
SERVER_PORT 80
SERVER_ADDR 96.45.187.204
SERVER_NAME www.fei28.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE <address>Apache Server at www.fei28.com Port 80</address>
LD_LIBRARY_PATH /www/server/apache/lib
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_CF_IPCOUNTRY US
HTTP_CDN_LOOP cloudflare
HTTP_CF_CONNECTING_IP 54.175.5.131
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_CF_VISITOR {"scheme":"https"}
HTTP_X_FORWARDED_PROTO https
HTTP_CF_RAY 86c089b68fd83982-IAD
HTTP_X_FORWARDED_FOR 54.175.5.131
HTTP_ACCEPT_ENCODING gzip, br
HTTP_CONNECTION Keep-Alive
HTTP_HOST www.fei28.com
proxy-nokeepalive 1
SCRIPT_URI http://www.fei28.com/
SCRIPT_URL /
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711722417.8036
REQUEST_TIME 1711722417
Environment Variablesempty
ThinkPHP Constantsempty