[8] ErrorException in Brand.php line 88

未定义变量: indudetail

  1. $data = array_rand($similar1,$num);
  2. for($i=0;$i<$num;$i++){
  3. $similar[] = $similar1[$data[$i]];
  4. }
  5. }else{
  6. for ($i=0; $i < $similarnum1 ; $i++) {
  7. $similar[] = $similar1[$i];
  8. }
  9. $num1 = 4 - count($similar);
  10. $cate = Db::name('brandworks')->where('bwid','<>',$get['bwid'])->where('bwid','not in',$wids)->where('cid',$indudetail['cid'])->select();
  11. if (count($cate) >= $num1) {
  12. $data1 = array_rand($cate ,$num1);
  13. for ($i=0; $i < $num1; $i++) {
  14. $similar[] = $cate[$data1[$i]];
  15. }
  16. }else{
  17. for ($i=0; $i < $num1; $i++) {
  18. $similar[] = $cate[$i];

Call Stack

  1. in Brand.php line 88
  2. at Error::appError(8, 'Undefined variable: ...', '/home/wwwroot/www.th...', 88, ['get' => ['bwid' => '18'], 'branddetail' => ['bwid' => 18, 'cid' => 8, 'brandname' => 'dddd', ...], 'pathdata' => ['/uploads/brandconten...', '/uploads/brandconten...', '/uploads/brandconten...', ...], ...]) in Brand.php line 88
  3. at Brand->brandDetail()
  4. at ReflectionMethod->invokeArgs(object(Brand), []) in App.php line 343
  5. at App::invokeMethod([object(Brand), 'branddetail'], []) in App.php line 611
  6. at App::module(['index', 'brand', 'branddetail'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'brand', 'branddetail']], ['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('/home/wwwroot/www.th...') in index.php line 16

Environment Variables

GET Data

bwid
18
POST Data
empty
Files
empty

Cookies

_vstime
1623019952
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_COOKIE
_vstime=1623019952
HTTP_REFERER
/
HTTP_ACCEPT
*/*
HTTP_ALI_CDN_REAL_IP
43.241.252.16
HTTP_X_CLIENT_SCHEME
http
HTTP_X_FORWARDED_FOR
43.241.252.16
HTTP_ALI_SWIFT_STAT_HOST
www.thinkpower.cc
HTTP_ALI_SWIFT_LOG_HOST
www.thinkpower.cc
HTTP_EAGLEEYE_TRACEID
3adad03916230199538896860e
HTTP_VIA
cn192.l1, kunlun3.cn192, l2cn3010.l2, cache1.l2cn3010
HTTP_HOST
www.thinkpower.cc
PHP_ADMIN_VALUE
open_basedir=/home/wwwroot/:/tmp/:/proc/
REDIRECT_STATUS
200
SERVER_NAME
www.thinkpower.cc
SERVER_PORT
80
SERVER_ADDR
172.26.93.44
REMOTE_PORT
35883
REMOTE_ADDR
61.184.22.21
SERVER_SOFTWARE
nginx/1.16.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/home/wwwroot/www.thinkpower.cc/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/brand/branddetail.html?bwid=18
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/brand/branddetail.html&bwid=18
SCRIPT_FILENAME
/home/wwwroot/www.thinkpower.cc/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1623019954.4188
REQUEST_TIME
1623019954
PATH_INFO
//index/brand/branddetail.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/wwwroot/www.thinkpower.cc/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1623019954.4191
THINK_START_MEM
408912
EXT
.php
DS
/
THINK_PATH
/home/wwwroot/www.thinkpower.cc/thinkphp/
LIB_PATH
/home/wwwroot/www.thinkpower.cc/thinkphp/library/
CORE_PATH
/home/wwwroot/www.thinkpower.cc/thinkphp/library/think/
TRAIT_PATH
/home/wwwroot/www.thinkpower.cc/thinkphp/library/traits/
ROOT_PATH
/home/wwwroot/www.thinkpower.cc/
EXTEND_PATH
/home/wwwroot/www.thinkpower.cc/extend/
VENDOR_PATH
/home/wwwroot/www.thinkpower.cc/vendor/
RUNTIME_PATH
/home/wwwroot/www.thinkpower.cc/runtime/
LOG_PATH
/home/wwwroot/www.thinkpower.cc/runtime/log/
CACHE_PATH
/home/wwwroot/www.thinkpower.cc/runtime/cache/
TEMP_PATH
/home/wwwroot/www.thinkpower.cc/runtime/temp/
CONF_PATH
/home/wwwroot/www.thinkpower.cc/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false