[8] ErrorException in Sourcegoods.php line 58

未定义数组索引: member_id

  1. $goods_id = $_GET['id'];
  2. $where['id'] = $goods_id;
  3. $where['state'] = 0;
  4. $goods = Db::table('sun_shop_goods')->where($where)->find();
  5. //获取品牌名称
  6. $goods['brand_name'] = Db::table('sun_brand')->where('id',$goods['brand_id'])->value('name');
  7. //获取商品组图
  8. $goods_img = Db::table('sun_image_goods')->where('goods_id',$goods_id)->field('uri')->select();
  9. //获取商家信息
  10. $member = Db::table('sun_shop')->where('id',$goods['member_id'])->find();
  11. //本商家其它产品
  12. $member_goods = Db::table('sun_shop_goods')->where('state',0)->where('member_id',$goods['member_id'])->order('id desc')->limit(5)->select();
  13. //获取评论条数
  14. $commentlist = Db::table('sun_shop_goods_evaluate')->where('goods_id',$goods_id)->select();
  15. //获取评论条数
  16. $comment = Db::table('sun_shop_goods_evaluate')->where('goods_id',$goods_id)->count();
  17. //获取好评条数
  18. $comment_h = Db::table('sun_shop_goods_evaluate')->where('goods_id',$goods_id)->where('grade',3)->count();
  19. //获取中评条数

Call Stack

  1. in Sourcegoods.php line 58
  2. at Error::appError(8, 'Undefined index: mem...', '/mnt/www/wwwroot/zwt...', 58, ['goods_id' => '79', 'where' => ['id' => '79', 'state' => 0], 'goods' => ['brand_name' => null], ...]) in Sourcegoods.php line 58
  3. at Sourcegoods->GoodsContent()
  4. at ReflectionMethod->invokeArgs(object(Sourcegoods), []) in App.php line 343
  5. at App::invokeMethod([object(Sourcegoods), 'goodscontent'], []) in App.php line 611
  6. at App::module(['index', 'sourcegoods', 'goodscontent'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'sourcegoods', 'goodscontent']], ['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/wwwroot/zwt...') in index.php line 56

Environment Variables

GET Data

id
79
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/index/sourcegoods/goodscontent.html?id=79
QUERY_STRING
id=79
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
id=79
REDIRECT_URL
/index/sourcegoods/goodscontent.html
REMOTE_PORT
37920
SCRIPT_FILENAME
/mnt/www/wwwroot/zwtc/public/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/mnt/www/wwwroot/zwtc/public
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
/mnt/www/wwwroot/zwtc/public
REMOTE_ADDR
3.89.116.152
SERVER_PORT
80
SERVER_ADDR
172.17.123.210
SERVER_NAME
www.izwtc.com
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at www.izwtc.com Port 80</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_HOST
www.izwtc.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
proxy-nokeepalive
1
REDIRECT_STATUS
200
REDIRECT_PATH_INFO
index/sourcegoods/goodscontent.html
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711649440.3788
REQUEST_TIME
1711649440
PATH_INFO
index/sourcegoods/goodscontent.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/mnt/www/wwwroot/zwtc/public/../application/
app_key
3331333731383036
app_secret
6842a54e4aab6e22bf368e5b7291efdf
app_id
232
whost
ws://www.izwtc.com
ahost
http://www.izwtc.com
wport
9091
aport
2081
registToken
1912263846
appid
appsecret
token
domain
http://www.zwsmcn.com
THINK_VERSION
5.0.24
THINK_START_TIME
1711649440.3789
THINK_START_MEM
401384
EXT
.php
DS
/
THINK_PATH
/mnt/www/wwwroot/zwtc/thinkphp/
LIB_PATH
/mnt/www/wwwroot/zwtc/thinkphp/library/
CORE_PATH
/mnt/www/wwwroot/zwtc/thinkphp/library/think/
TRAIT_PATH
/mnt/www/wwwroot/zwtc/thinkphp/library/traits/
ROOT_PATH
/mnt/www/wwwroot/zwtc/
EXTEND_PATH
/mnt/www/wwwroot/zwtc/extend/
VENDOR_PATH
/mnt/www/wwwroot/zwtc/vendor/
RUNTIME_PATH
/mnt/www/wwwroot/zwtc/runtime/
LOG_PATH
/mnt/www/wwwroot/zwtc/runtime/log/
CACHE_PATH
/mnt/www/wwwroot/zwtc/runtime/cache/
TEMP_PATH
/mnt/www/wwwroot/zwtc/runtime/temp/
CONF_PATH
/mnt/www/wwwroot/zwtc/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/mnt/www/wwwroot/zwtc/addons/
USER
12612019@qq.com
UKEY
3GbJjWpdBbmfbEpB
PRINT_SERVER
https://api.feieyun.cn/Api/Open/
API_SERVER
http://www.viooma.com/plugin/
IP
api.feieyun.cn
PATH
/Api/Open/
APP
/mnt/www/wwwroot/zwtc/application