[8] ErrorException in Index.php line 73

未定义数组索引: effect

  1. 2 => '多款墙面漆满足不同需求',
  2. 3 => '个性化墙面展示居家创意',
  3. 4 => '无需调色,色彩所见即所得',
  4. 6 => '理想之上 畅享艺术生活'
  5. ]
  6. ]);
  7. }
  8. $product = Db::name('interior_paint')->where('id', $id)->find();
  9. $product['img'] = json_decode($product['img'], true);
  10. $product['effect'] = json_decode($product['effect'], true);
  11. if(empty($product)) {
  12. throw new \think\exception\HttpException(404, '产品不存在');
  13. }
  14. $authIds = explode(',', $product['authentication']);
  15. if(!empty($authIds)) {
  16. $auth = Db::name('interior_paint_auth')->where('id', 'in', $authIds)->select();
  17. }
  18. $tpl = 'pc/productDetail';
  19. if(in_array($id, [21, 22, 23, 25])) {

Call Stack

  1. in Index.php line 73
  2. at Error::appError(8, 'Undefined index: eff...', '/mnt/www/web/applica...', 73, ['id' => '114', 'product' => ['img' => null]]) in Index.php line 73
  3. at Index->product()
  4. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  5. at App::invokeMethod([object(Index), 'product'], []) in App.php line 611
  6. at App::module([null, 'Index', 'product'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => [null, 'Index', 'product'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/mnt/www/web/thinkph...') in index.php line 18

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

REDIRECT_UNIQUE_ID
ZgXPLpUf0M5hpXp7Xu-Y1gAAAAM
REDIRECT_HTTPS
on
REDIRECT_SSL_TLS_SNI
www.swfarbe.com
REDIRECT_STATUS
200
UNIQUE_ID
ZgXPLpUf0M5hpXp7Xu-Y1gAAAAM
HTTPS
on
SSL_TLS_SNI
www.swfarbe.com
SSL_SERVER_S_DN_CN
www.swfarbe.com
SSL_SERVER_I_DN_C
US
SSL_SERVER_I_DN_O
DigiCert Inc
SSL_SERVER_I_DN_OU
www.digicert.com
SSL_SERVER_I_DN_CN
Encryption Everywhere DV TLS CA - G2
SSL_SERVER_SAN_DNS_0
www.swfarbe.com
SSL_SERVER_SAN_DNS_1
swfarbe.com
SSL_VERSION_INTERFACE
mod_ssl/2.4.39
SSL_VERSION_LIBRARY
OpenSSL/1.0.2s
SSL_PROTOCOL
TLSv1.2
SSL_SECURE_RENEG
true
SSL_COMPRESS_METHOD
NULL
SSL_CIPHER
ECDHE-RSA-AES256-GCM-SHA384
SSL_CIPHER_EXPORT
false
SSL_CIPHER_USEKEYSIZE
256
SSL_CIPHER_ALGKEYSIZE
256
SSL_CLIENT_VERIFY
NONE
SSL_SERVER_M_VERSION
3
SSL_SERVER_M_SERIAL
055D9BB57DB92970F43E96B1D2DAE0A8
SSL_SERVER_V_START
Feb 20 00:00:00 2024 GMT
SSL_SERVER_V_END
May 20 23:59:59 2024 GMT
SSL_SERVER_S_DN
CN=www.swfarbe.com
SSL_SERVER_I_DN
CN=Encryption Everywhere DV TLS CA - G2,OU=www.digicert.com,O=DigiCert Inc,C=US
SSL_SERVER_A_KEY
rsaEncryption
SSL_SERVER_A_SIG
sha256WithRSAEncryption
SSL_SESSION_RESUMED
Initial
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_REFERER
http://www.swfarbe.com/InteriorPaint/Detail/114.html
HTTP_HOST
www.swfarbe.com
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
LD_LIBRARY_PATH
/opt/lampp/lib:/opt/lampp/lib
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache/2.4.39 (Unix) OpenSSL/1.0.2s PHP/7.3.7 mod_perl/2.0.8-dev Perl/v5.16.3
SERVER_NAME
www.swfarbe.com
SERVER_ADDR
172.26.200.61
SERVER_PORT
443
REMOTE_ADDR
100.26.140.179
DOCUMENT_ROOT
/mnt/www/web/public
REQUEST_SCHEME
https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/mnt/www/web/public
SERVER_ADMIN
you@example.com
SCRIPT_FILENAME
/mnt/www/web/public/index.php
REMOTE_PORT
60982
REDIRECT_URL
/InteriorPaint/Detail/114.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/InteriorPaint/Detail/114.html
SCRIPT_NAME
/index.php
PATH_INFO
/InteriorPaint/Detail/114.html
PATH_TRANSLATED
redirect:/index.php/InteriorPaint/Detail/114.html/Detail/114.html
PHP_SELF
/index.php/InteriorPaint/Detail/114.html
REQUEST_TIME_FLOAT
1711656750.164
REQUEST_TIME
1711656750
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/mnt/www/web/public/../application/
BIND_MODULE
index
THINK_VERSION
5.0.24
THINK_START_TIME
1711656750.165
THINK_START_MEM
404200
EXT
.php
DS
/
THINK_PATH
/mnt/www/web/thinkphp/
LIB_PATH
/mnt/www/web/thinkphp/library/
CORE_PATH
/mnt/www/web/thinkphp/library/think/
TRAIT_PATH
/mnt/www/web/thinkphp/library/traits/
ROOT_PATH
/mnt/www/web/
EXTEND_PATH
/mnt/www/web/extend/
VENDOR_PATH
/mnt/www/web/vendor/
RUNTIME_PATH
/mnt/www/web/runtime/
LOG_PATH
/mnt/www/web/runtime/log/
CACHE_PATH
/mnt/www/web/runtime/cache/
SESSION_PATH
/mnt/www/web/runtime/session/
TEMP_PATH
/mnt/www/web/runtime/temp/
CONF_PATH
/mnt/www/web/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false