[2] ErrorException in Company.php line 264

Illegal string offset 'company_id'

  1. // }
  2. // $areaWhere['company_id'] = $id;
  3. // unset($where);
  4. // //获取该地区下的公司id
  5. // $currentAreas = Db::name('service')->field('company_id')->where($areaWhere)->group('company_id')->select();
  6. // dd($currentAreas);
  7. // if($currentAreas){
  8. // $companyIds = array_column($currentAreas, 'company_id');
  9. // $where['company_id'] = ['in',$companyIds];
  10. $where['company_id'] = $id;
  11. //查找风格
  12. $styleIds = array_column($styles, 'id');
  13. if(in_array($style, $styleIds))
  14. $where['style'] = $style;
  15. //查找类型
  16. $typeIds = array_column($types, 'id');
  17. if(in_array($type, $typeIds))
  18. $where['type'] = $type;
  19. //查找面积

Call Stack

  1. in Company.php line 264
  2. at Error::appError(2, 'Illegal string offse...', '/disk1/zhuang/www.le...', 264, ['id' => '1238', 'area' => null, 'style' => null, ...]) in Company.php line 264
  3. at Company->companyProduct('1238')
  4. at ReflectionMethod->invokeArgs(object(Company), ['1238']) in App.php line 343
  5. at App::invokeMethod([object(Company), 'companyProduct'], []) in App.php line 611
  6. at App::module(['index', 'Company', 'companyProduct'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'Company', 'companyProduct'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  8. at App::run() in start.php line 18
  9. at require('/disk1/zhuang/www.le...') in index.php line 1

Exception Datas

Error Context
id 1238
area Resource
style Resource
type Resource
square Resource
company { "id": 1238, "name": " \u5317\u4eac\u70db\u5149\u88c5\u9970\u6709\u9650\u516c\u53f8", "logo": "inimgpic\/495406.jpg" }
where
types [ { "id": 1, "name": "\u666e\u901a\u4f4f\u5b85", "check": 0, "params": "id=1238&type=1" }, { "id": 2, "name": "\u5c0f\u6237\u578b", "check": 0, "params": "id=1238&type=2" }, { "id": 3, "name": "\u522b\u5885", "check": 0, "params": "id=1238&type=3" }, { "id": 4, "name": "\u4e8c\u5c45", "check": 0, "params": "id=1238&type=4" }, { "id": 5, "name": "\u4e09\u5c45", "check": 0, "params": "id=1238&type=5" }, { "id": 6, "name": "\u56db\u5c45", "check": 0, "params": "id=1238&type=6" }, { "id": 7, "name": "\u590d\u5f0f\u6837\u677f\u623f", "check": 0, "params": "id=1238&type=7" }, { "id": 8, "name": "\u8c6a\u5b85", "check": 0, "params": "id=1238&type=8" }, { "id": 9, "name": "\u5176\u4ed6", "check": 0, "params": "id=1238&type=9" } ]
styles [ { "id": 1, "name": "\u73b0\u4ee3", "check": 0, "params": "id=1238&style=1" }, { "id": 2, "name": "\u4e2d\u5f0f", "check": 0, "params": "id=1238&style=2" }, { "id": 3, "name": "\u6b27\u5f0f", "check": 0, "params": "id=1238&style=3" }, { "id": 4, "name": "\u7f8e\u5f0f", "check": 0, "params": "id=1238&style=4" }, { "id": 5, "name": "\u6cd5\u5f0f", "check": 0, "params": "id=1238&style=5" }, { "id": 6, "name": "\u65e5\u5f0f", "check": 0, "params": "id=1238&style=6" }, { "id": 7, "name": "\u5317\u6b27", "check": 0, "params": "id=1238&style=7" }, { "id": 8, "name": "\u8f7b\u5962", "check": 0, "params": "id=1238&style=8" }, { "id": 9, "name": "\u65b0\u53e4\u5178", "check": 0, "params": "id=1238&style=9" }, { "id": 10, "name": "\u4e1c\u5357\u4e9a", "check": 0, "params": "id=1238&style=10" }, { "id": 11, "name": "\u7530\u56ed", "check": 0, "params": "id=1238&style=11" }, { "id": 12, "name": "\u5730\u4e2d\u6d77", "check": 0, "params": "id=1238&style=12" }, { "id": 13, "name": "\u6df7\u642d", "check": 0, "params": "id=1238&style=13" } ]
squares [ { "id": 1, "name": "60-80m\u00b2", "max": 80, "check": 0, "params": "id=1238&square=1" }, { "id": 2, "name": "80-100m\u00b2", "max": 100, "check": 0, "params": "id=1238&square=2" }, { "id": 3, "name": "100-120m\u00b2", "max": 120, "check": 0, "params": "id=1238&square=3" }, { "id": 4, "name": "120m\u00b2\u4ee5\u4e0a", "max": 121, "check": 0, "params": "id=1238&square=4" } ]
products []
val { "id": 4, "name": "120m\u00b2\u4ee5\u4e0a", "max": 121, "check": 0, "params": "id=1238&square=4" }
key 3
removeArr []
arr { "id": "1238" }
params id=1238
productData []

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty

Session

think
{ "seo_title": "\u4e50\u5c45\u667a\u8054|\u6574\u88c5\u7ba1\u7406\u5e73\u53f0|\u88c5\u4fee\u7ba1\u7406|\u5341\u5927\u5899\u5e03\u5382\u5bb6", "seo_keywords": "\u4e50\u5c45\u667a\u8054\u6574\u88c5\u7ba1\u7406\u5e73\u53f0,\u88c5\u4fee\u7ba1\u7406", "seo_description": "\u4e50\u5c45\u667a\u8054\u7f51\u81f4\u529b\u4e8e\u4e3a\u5e7f\u5927\u4e1a\u4e3b\u63d0\u4f9b\u900f\u660e\u3001\u4fdd\u969c\u3001\u7701\u5fc3\u7684\u88c5\u4fee\u670d\u52a1\uff01\u6c47\u96c6\u5168\u56fd\u5404\u5927\u88c5\u9970\u516c\u53f8\uff0c\u5e76\u6709\u6743\u5a01\u88c5\u4fee\u516c\u53f8\u6392\u540d\u53ef\u4f9b\u53c2\u8003\u3002", "seo_last_time": 1711695814 }

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
lejzl.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
REDIRECT_STATUS
200
SERVER_NAME
lejzl.com
SERVER_PORT
80
SERVER_ADDR
172.17.63.121
REMOTE_PORT
49468
REMOTE_ADDR
54.82.20.97
SERVER_SOFTWARE
nginx/1.16.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/disk1/zhuang/www.lejzl.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/companyproduct/1238.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=//companyproduct/1238.html
SCRIPT_FILENAME
/disk1/zhuang/www.lejzl.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711692214.2178
REQUEST_TIME
1711692214
PATH_INFO
//companyproduct/1238.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/disk1/zhuang/www.lejzl.com/public/../application/
THINK_VERSION
5.0.12
THINK_START_TIME
1711692214.2181
THINK_START_MEM
414328
EXT
.php
DS
/
THINK_PATH
/disk1/zhuang/www.lejzl.com/thinkphp/
LIB_PATH
/disk1/zhuang/www.lejzl.com/thinkphp/library/
CORE_PATH
/disk1/zhuang/www.lejzl.com/thinkphp/library/think/
TRAIT_PATH
/disk1/zhuang/www.lejzl.com/thinkphp/library/traits/
ROOT_PATH
/disk1/zhuang/www.lejzl.com/
EXTEND_PATH
/disk1/zhuang/www.lejzl.com/extend/
VENDOR_PATH
/disk1/zhuang/www.lejzl.com/vendor/
RUNTIME_PATH
/disk1/zhuang/www.lejzl.com/runtime/
LOG_PATH
/disk1/zhuang/www.lejzl.com/runtime/log/
CACHE_PATH
/disk1/zhuang/www.lejzl.com/runtime/cache/
TEMP_PATH
/disk1/zhuang/www.lejzl.com/runtime/temp/
CONF_PATH
/disk1/zhuang/www.lejzl.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false