1. }
  2. $filterArrCount=count($filterArr);
  3. }
  4. $feature=db('featureclass')->where('id',$cateid)->find();
  5. $cpLstArr=explode(',',$feature['Cplst']);
  6. $fieldStr='b.goods_id,b.cpname,b.urlname,b.price,b.cpdesc,b.pic';
  7. if($filterArrCount){
  8. if($filterArrCount==0){
  9. $goodsCount=Db::name('goods_standard')->alias('a')->group('b.goods_id')->distinct(true)->field($fieldStr)->join('cp b','a.goods_id=b.goods_id')->where('b.goods_id','in',$cpLstArr)->count();
  10. $goodsData=Db::name('goods_standard')->alias('a')->distinct(true)->field($fieldStr)->join('cp b','a.goods_id=b.goods_id')->where('b.goods_id','in',$cpLstArr)->select();
  11. }
  12. //2、1,1_0,1_0_0,0_0_1
  13. if($filterArrCount==1){
  14. $goodsCount=Db::name('goods_standard')->alias('a')->distinct(true)->field($fieldStr)->join('cp b','a.goods_id=b.goods_id')->where(Db::raw("FIND_IN_SET($filterArr[0],sku)"))->where('b.goods_id','in',$cpLstArr)->count();

Call Stack

  1. in Featureclass.php line 100
  2. at Error::appError(8, 'Undefined variable: ...', '/www/wwwroot/wordpre...', 100, ['CpModel' => object(Cp), 'all' => ['url_mark' => 'differential_pressur...'], 'cateid' => null, ...]) in Featureclass.php line 100
  3. at Featureclass->index()
  4. at ReflectionMethod->invokeArgs(object(Featureclass), []) in App.php line 343
  5. at App::invokeMethod([object(Featureclass), 'index'], ['cid' => null]) in Loader.php line 596
  6. at Loader::action('index/Featureclass/i...', ['cid' => null], 'controller', false) in helper.php line 226
  7. at action('index/Featureclass/i...', ['cid' => null]) in Cp.php line 43
  8. at Cp->index()
  9. at ReflectionMethod->invokeArgs(object(Cp), []) in App.php line 343
  10. at App::invokeMethod([object(Cp), 'index'], []) in App.php line 611
  11. at App::module(['index', 'Cp', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  12. at App::exec(['type' => 'module', 'module' => ['index', 'Cp', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  13. at App::run() in start.php line 19
  14. at require('/www/wwwroot/wordpre...') in index.php line 193

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
905udhis6dss023r4voqcp63k0

Session

think
{ "__flash__": [] }

Server/Request Data

USER
www
HOME
/home/www
HTTP_COOKIE
PHPSESSID=905udhis6dss023r4voqcp63k0
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.microsensor.cn
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
PATH_INFO
/productlist-differential_pressure_transmitters/oil_and_gas
REDIRECT_STATUS
200
SERVER_NAME
www.microsensor.cn
SERVER_PORT
443
SERVER_ADDR
172.30.141.14
REMOTE_PORT
57280
REMOTE_ADDR
50.2.190.10
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/wordpress.microsensor.cn/public
DOCUMENT_URI
/index.php
REQUEST_URI
/productlist-differential_pressure_transmitters/oil_and_gas
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/productlist-differential_pressure_transmitters/oil_and_gas
SCRIPT_FILENAME
/www/wwwroot/wordpress.microsensor.cn/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1718913634.1899
REQUEST_TIME
1718913634
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/wordpress.microsensor.cn/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1718913634.1904
THINK_START_MEM
410400
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/wordpress.microsensor.cn/thinkphp/
LIB_PATH
/www/wwwroot/wordpress.microsensor.cn/thinkphp/library/
CORE_PATH
/www/wwwroot/wordpress.microsensor.cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/wordpress.microsensor.cn/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/wordpress.microsensor.cn/
EXTEND_PATH
/www/wwwroot/wordpress.microsensor.cn/extend/
VENDOR_PATH
/www/wwwroot/wordpress.microsensor.cn/vendor/
RUNTIME_PATH
/www/wwwroot/wordpress.microsensor.cn/runtime/
LOG_PATH
/www/wwwroot/wordpress.microsensor.cn/runtime/log/
CACHE_PATH
/www/wwwroot/wordpress.microsensor.cn/runtime/cache/
TEMP_PATH
/www/wwwroot/wordpress.microsensor.cn/runtime/temp/
CONF_PATH
/www/wwwroot/wordpress.microsensor.cn/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
XML 地图