维多利亚老品牌vic3308(中国)有限公司

#0 [0]TypeError in Product.php line 61

Argument 2 passed to app\index\model\Product::detail() must be of the type integer, string given, called in /www/wwwroot/www.dfjnkj.com/app/index/controller/Product.php on line 120

  1. * @param int $itemid
  2. * @param string $field
  3. * @return array
  4. * @throws \think\db\exception\DataNotFoundException
  5. * @throws \think\db\exception\DbException
  6. * @throws \think\db\exception\ModelNotFoundException
  7. * @author wangdong
  8. * @date 2024/9/3 13:56
  9. */
  10. public function detail(string $site="",int $itemid, string $field = ""){
  11. if(empty($itemid)) return ArrayData(10000000 , array() , '信息不存在');
  12. $where = [];
  13. $where[] = ['del', '=' , 0];
  14. $where[] = ['itemid', '=' , $itemid];
  15. $where[] = ['site', '=' , $site];
  16. $res = $this->where($where)->field(empty($field) ? true : $field)->find();
  17. if($res){
  18. $this->where($where)->update(['hits'=>$res['hits']+1]);

Call Stack

  1. in Product.php line 61
  2. at Product->detail('cn', 'www.baixeg.com') in Product.php line 120
  3. at Product->detail()
  4. at ReflectionMethod->invokeArgs(object(Product), []) in Container.php line 343
  5. at Container->invokeReflectMethod(object(Product), object(ReflectionMethod), ['itemid' => 'www.baixeg.com']) in Controller.php line 110
  6. at Controller->think\route\dispatch\{closure}(object(Request)) in Pipeline.php line 59
  7. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  8. at Pipeline->then(object(Closure)) in Controller.php line 113
  9. at Controller->exec() in Dispatch.php line 89
  10. at Dispatch->run() in Route.php line 772
  11. at Route->think\{closure}(object(Request)) in Pipeline.php line 59
  12. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  13. at Pipeline->then(object(Closure)) in Route.php line 773
  14. at Route->dispatch(object(Request), object(Closure)) in Http.php line 216
  15. at Http->dispatchToRoute(object(Request)) in Http.php line 206
  16. at Http->think\{closure}(object(Request)) in Pipeline.php line 59
  17. at Pipeline->think\{closure}(object(Request)) in MultiApp.php line 51
  18. at MultiApp->think\app\{closure}(object(Request)) in Pipeline.php line 59
  19. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  20. at Pipeline->then(object(Closure)) in MultiApp.php line 52
  21. at MultiApp->handle(object(Request), object(Closure))
  22. at call_user_func([object(MultiApp), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  23. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  24. at Pipeline->think\{closure}(object(Request)) in SessionInit.php line 67
  25. at SessionInit->handle(object(Request), object(Closure))
  26. at call_user_func([object(SessionInit), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  27. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  28. at Pipeline->think\{closure}(object(Request)) in TraceDebug.php line 71
  29. at TraceDebug->handle(object(Request), object(Closure))
  30. at call_user_func([object(TraceDebug), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  31. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  32. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  33. at Pipeline->then(object(Closure)) in Http.php line 207
  34. at Http->runWithRequest(object(Request)) in Http.php line 170
  35. at Http->run() in index.php line 32

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
PHPSESSID 1c618123838b88578e4d0379e6738522
ASPSESSIONIDCSRDDDCT FDNHNNDDIKDAKJPMLOFDHNLM
ASPSESSIONIDSQTDDBBR IKLNDCHCLHPKMFMDIOCFGGNE
ASPSESSIONIDQQSBBBDQ BLJDKGKBONNFPLOCJBGJHKPC
ASPSESSIONIDSSTDBDDQ HCINPKNANJCIMBPAECDAJDNI
ASPSESSIONIDSQTDBBAT MLFFFPAAPDMKGFOGMMHALNHC
ASPSESSIONIDSQQBDDBT ODDFKDEDFJPBIBNPHIMAEAOG
ASPSESSIONIDSSRABCCS HKCHCIHCPBIHABIHLOKBJLLB
ASPSESSIONIDACBQBBBQ HCDPIMKBGKPCJKDAOJJEGPKA
ASPSESSIONIDAACSCAAQ GCPHPAOALPIDFJCAOIMCBBBP
ASPSESSIONIDAADSACBR POLLCFBAFJDCCOPCHDPFCGKP
ASPSESSIONIDCCBQCBCR LDNNIJEDAIMNJKMEJAMIPFDJ
ASPSESSIONIDAADTCDDQ ODIKPNHCJBIPEFLDHLFFHONB
ASPSESSIONIDCADRCABS FNKHECLBBBLDGIJNCBAMNOMG
ASPSESSIONIDAAQTDATD CCBALAABPEJBMHLMOMIPHODF
ASPSESSIONIDACQSCDSC JILPOEDAHLLCBEKJGOOJBOFO
ASPSESSIONIDQCTQCCRB MCEMFJGDEMJCDCEMBBAKOGDP
cdn_sec_tc a3b5429d17857222255241868e74594419fa5d99471215c49b8c0e0e1d
acw_tc a3b5429d17857222255241868e74594419fa5d99471215c49b8c0e0e1d
ASPSESSIONIDASDRTBQA LLBNIJMBHLAMDDGMMIFFGFFF
ASPSESSIONIDAQCRSDQB LAPPMNPACOINLHGLLPJADBBM
ASPSESSIONIDAQDTQBSA FLFCBCDAMAIFNDMHDNHOGMKB
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_ACCEPT_ENCODING gzip
HTTP_EAGLEEYE_TRACEID a3b542a217857257598488716e
HTTP_X_FORWARDED_FOR 104.140.79.98
HTTP_CDN_LOOP esa;loop=1
HTTP_USER_AGENT Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1
HTTP_HOST www.dfjnkj.com
HTTP_COOKIE PHPSESSID=1c618123838b88578e4d0379e6738522; ASPSESSIONIDCSRDDDCT=FDNHNNDDIKDAKJPMLOFDHNLM; ASPSESSIONIDSQTDDBBR=IKLNDCHCLHPKMFMDIOCFGGNE; ASPSESSIONIDQQSBBBDQ=BLJDKGKBONNFPLOCJBGJHKPC; ASPSESSIONIDSSTDBDDQ=HCINPKNANJCIMBPAECDAJDNI; ASPSESSIONIDSQTDBBAT=MLFFFPAAPDMKGFOGMMHALNHC; ASPSESSIONIDSQQBDDBT=ODDFKDEDFJPBIBNPHIMAEAOG; ASPSESSIONIDSSRABCCS=HKCHCIHCPBIHABIHLOKBJLLB; ASPSESSIONIDACBQBBBQ=HCDPIMKBGKPCJKDAOJJEGPKA; ASPSESSIONIDAACSCAAQ=GCPHPAOALPIDFJCAOIMCBBBP; ASPSESSIONIDAADSACBR=POLLCFBAFJDCCOPCHDPFCGKP; ASPSESSIONIDCCBQCBCR=LDNNIJEDAIMNJKMEJAMIPFDJ; ASPSESSIONIDAADTCDDQ=ODIKPNHCJBIPEFLDHLFFHONB; ASPSESSIONIDCADRCABS=FNKHECLBBBLDGIJNCBAMNOMG; ASPSESSIONIDAAQTDATD=CCBALAABPEJBMHLMOMIPHODF; ASPSESSIONIDACQSCDSC=JILPOEDAHLLCBEKJGOOJBOFO; ASPSESSIONIDQCTQCCRB=MCEMFJGDEMJCDCEMBBAKOGDP; cdn_sec_tc=a3b5429d17857222255241868e74594419fa5d99471215c49b8c0e0e1d; acw_tc=a3b5429d17857222255241868e74594419fa5d99471215c49b8c0e0e1d; ASPSESSIONIDASDRTBQA=LLBNIJMBHLAMDDGMMIFFGFFF; ASPSESSIONIDAQCRSDQB=LAPPMNPACOINLHGLLPJADBBM; ASPSESSIONIDAQDTQBSA=FLFCBCDAMAIFNDMHDNHOGMKB
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME new.dfjnkj.com
SERVER_PORT 80
SERVER_ADDR 112.29.170.91
REMOTE_PORT 34513
REMOTE_ADDR 163.181.66.162
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.dfjnkj.com/public
DOCUMENT_URI /index.php
REQUEST_URI /show/www.baixeg.com
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/show/www.baixeg.com
SCRIPT_FILENAME /www/wwwroot/www.dfjnkj.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1785725718.3348
REQUEST_TIME 1785725718
Baidu
sogou