[8] ErrorException in Active.php line 591

未定义数组下标: 1

  1. {
  2. $info = Db::table("cm_package")
  3. ->where("id", "in", [44, 45, 46, 47])
  4. ->field("id,act_name as name,sub_name,unit_price,default,price,origin_price,expire_time,pak_tips,default,alipay,remark")
  5. ->order("sorter desc")
  6. ->select();
  7. foreach ($info as $k => $v) {
  8. $arr = explode(",", $v["remark"]);
  9. $info[$k]["remark1"] = $arr[0];
  10. $info[$k]["remark2"] = $arr[1];
  11. }
  12. $this->assign("package_info", $info);
  13. $activeInfo = Db::table("cm_active")
  14. ->where("status", 1)
  15. ->where("expire", 1)
  16. ->where("plat", "万圣节活动")
  17. ->find();
  18. $endTime = $activeInfo["end"];
  19. if ($activeInfo["expire"] == -1) {

Call Stack

  1. in Active.php line 591
  2. at Error::appError(8, 'Undefined offset: 1', '/lj_root/liuxing/app...', 591, ['info' => [['id' => 44, 'name' => '月卡', 'sub_name' => '直降5元', ...], ['id' => 45, 'name' => '年卡', 'sub_name' => '直降20元 ', ...], ['id' => 47, 'name' => '800小时', 'sub_name' => '直降6元 ', ...], ...], 'v' => ['id' => 44, 'name' => '月卡', 'sub_name' => '直降5元', ...], 'k' => 0, ...]) in Active.php line 591
  3. at Active->halloweennew()
  4. at ReflectionMethod->invokeArgs(object(Active), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Active), object(ReflectionMethod), []) 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 16

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
TEMP /tmp
TMPDIR /tmp
TMP /tmp
PATH /usr/local/bin:/usr/bin:/bin
USER www
HOME /home/www
HTTP_HOST wapi.lxjiasu.com
HTTP_E605D26C1A50CFABCF6A51C170EAB3E2 tag
HTTP_X_NWS_LOG_UUID 14002262203631522479
HTTP_TENCENT_ACCELERATION_DOMAIN_NAME wapi.lxjiasu.com
HTTP_71DBC4E61F4986EE37644B8EBFBD1D71 tag
HTTP_E80BF67D811A62D851941561C881D376 tag
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_FOR 47.100.87.46
HTTP_X_TENCENT_UA Qcloud
HTTP_CONNECTION keep-alive
HTTP_5DBBCBACF17AAA269740F0F1835126AF tag
HTTP_ACCEPT */*
PATH_INFO
PHP_VALUE open_basedir=/lj_root/liuxing/public:/tmp/:/proc/:/lj_root/liuxing
REDIRECT_STATUS 200
SERVER_NAME wapi.lxjiasu.com
SERVER_PORT 80
SERVER_ADDR 10.3.137.78
REMOTE_PORT 18792
REMOTE_ADDR 117.21.43.107
SERVER_SOFTWARE nginx/1.17.3
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /lj_root/liuxing/public
DOCUMENT_URI /index.php
REQUEST_URI /html/active/halloweennew
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/html/active/halloweennew
SCRIPT_FILENAME /lj_root/liuxing/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1723728080.7832
REQUEST_TIME 1723728080
Environment Variablesempty
ThinkPHP Constants
APP_PATH /lj_root/liuxing/public/../application/
ROOT_PATH /lj_root/liuxing/public/../
SITE_PATH /lj_root/liuxing/public/