[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_X_ALICDN_DA_VIA 101.37.183.144,101.133.199.111
HTTP_ALI_SWIFT_ORIGIN_HOST wapi.jianyujiasu.com
HTTP_ALI_CDN_APPVIEW_NAME cdn-tengine
HTTP_ACCEPT */*
HTTP_ALI_SWIFT_FORCE_TTL_CODE 400=0
HTTP_X_CLIENT_SCHEME https
HTTP_X_FORWARDED_FOR 47.100.87.46
HTTP_ALI_SWIFT_STAT_HOST wapi.jianyujiasu.com
HTTP_ALI_SWIFT_LOG_HOST wapi.jianyujiasu.com
HTTP_ALI_CDN_REAL_IP 47.100.87.46
HTTP_ALI_CDN_REAL_PORT 47987
HTTP_EAGLEEYE_TRACEID 6525b79b17121296863923375e
HTTP_VIA cn1576.l1, l2et15-7.l2
HTTP_HOST wapi.jianyujiasu.com
PATH_INFO
PHP_VALUE open_basedir=/lj_root/liuxing/public:/tmp/:/proc/:/lj_root/liuxing
REDIRECT_STATUS 200
SERVER_NAME wapi.jianyujiasu.com
SERVER_PORT 80
SERVER_ADDR 10.3.137.78
REMOTE_PORT 61446
REMOTE_ADDR 101.133.199.87
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 1712129686.3919
REQUEST_TIME 1712129686
Environment Variablesempty
ThinkPHP Constants
APP_PATH /lj_root/liuxing/public/../application/
ROOT_PATH /lj_root/liuxing/public/../
SITE_PATH /lj_root/liuxing/public/