[2] ErrorException in Servicecase.php line 56

Creating default object from empty value

  1. }
  2. public function getIndexList(){
  3. return $this->field('id,name,image')->where(['tjdata' => ['EQ','1']])->limit(4)->order('weigh desc')->select();
  4. }
  5. public function getDetail($id){
  6. $model = $this->field("id,name,c_keywords,c_description,image,content,views")->where('id',$id)->find();
  7. $model->views += 1;
  8. $model->save();
  9. return $model;
  10. }
  11. public function getPre($id){
  12. return $this->field('id,name')->where('id','<',$id)->order('id desc')->find();
  13. }
  14. public function getNext($id){

Call Stack

  1. in Servicecase.php line 56
  2. at Error::appError(2, 'Creating default obj...', 'E:\bjhuacan\Apache24...', 56, ['id' => null, 'model' => object(stdClass)]) in Servicecase.php line 56
  3. at Servicecase->getDetail(null) in Index.php line 360
  4. at Index->partner_detail()
  5. at call_user_func_array([object(Index), 'partner_detail'], []) in Route.php line 78
  6. at Route->execute('wwh', 'index', 'partner_detail')
  7. at ReflectionMethod->invokeArgs(object(Route), ['wwh', 'index', 'partner_detail']) in App.php line 343
  8. at App::invokeMethod(['\think\addons\Route', 'execute'], ['/partner_detail/' => '', 'id' => null, 'addon' => 'wwh', ...]) in App.php line 470
  9. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'wwh', 'controller' => 'index', 'action' => 'partner_detail']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('E:\bjhuacan\Apache24...') in index.php line 23

Environment Variables

GET Data

/partner_detail/
POST Data
empty
Files
empty

Cookies

$Version
1
PHPSESSID
lv0qpj32lmui2ni3f5cavjh6oj
$Path
/
Session
empty

Server/Request Data

REDIRECT_STATUS
200
HTTP_REFERER
http://www.bjhuacan.cn/partner_detail/9.html
HTTP_COOKIE
$Version=1; PHPSESSID=lv0qpj32lmui2ni3f5cavjh6oj; $Path=/
HTTP_CONNECTION
keep-alive
HTTP_HOST
www.bjhuacan.cn
HTTP_USER_AGENT
Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)
HTTP_ACCEPT
text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1
HTTP_ACCEPT_LANGUAGE
en, *
HTTP_ACCEPT_ENCODING
gzip, identity;q=0.9
PATH
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;E:\DB\mongodb\bin;C:\Program Files\dotnet\;C:\Program Files (x86)\dotnet\;F:\apache-tomcat-7.0.94\lib;F:\apache-tomcat-7.0.94\bin;F:\Program Files\Java\jdk1.8.0_211\bin;F:\Program Files\Java\jdk1.8.0_211\jre\bin;C:\Program Files\Git\cmd;E:\Program Files\VisualSVN Server\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Users\Administrator\.dotnet\tools
SystemRoot
C:\Windows
COMSPEC
C:\Windows\system32\cmd.exe
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR
C:\Windows
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache/2.4.54 (Win64) PHP/7.2.0
SERVER_NAME
www.bjhuacan.cn
SERVER_ADDR
114.215.26.141
SERVER_PORT
80
REMOTE_ADDR
111.248.147.52
DOCUMENT_ROOT
E:/bjhuacan/Apache24/htdocs/web/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
E:/bjhuacan/Apache24/htdocs/web/public
SERVER_ADMIN
admin@example.com
SCRIPT_FILENAME
E:/bjhuacan/Apache24/htdocs/web/public/index.php
REMOTE_PORT
8033
REDIRECT_URL
/partner_detail/
REDIRECT_QUERY_STRING
/partner_detail/
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
/partner_detail/
REQUEST_URI
/partner_detail/
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1678689544.7
REQUEST_TIME
1678689544
PATH_INFO
/partner_detail/
Environment Variables
empty

ThinkPHP Constants

APP_PATH
E:\bjhuacan\Apache24\htdocs\web\public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1678689544.7023
THINK_START_MEM
409800
EXT
.php
DS
\
THINK_PATH
E:\bjhuacan\Apache24\htdocs\web\thinkphp\
LIB_PATH
E:\bjhuacan\Apache24\htdocs\web\thinkphp\library\
CORE_PATH
E:\bjhuacan\Apache24\htdocs\web\thinkphp\library\think\
TRAIT_PATH
E:\bjhuacan\Apache24\htdocs\web\thinkphp\library\traits\
ROOT_PATH
E:\bjhuacan\Apache24\htdocs\web\
EXTEND_PATH
E:\bjhuacan\Apache24\htdocs\web\extend\
VENDOR_PATH
E:\bjhuacan\Apache24\htdocs\web\vendor\
RUNTIME_PATH
E:\bjhuacan\Apache24\htdocs\web\runtime\
LOG_PATH
E:\bjhuacan\Apache24\htdocs\web\runtime\log\
CACHE_PATH
E:\bjhuacan\Apache24\htdocs\web\runtime\cache\
TEMP_PATH
E:\bjhuacan\Apache24\htdocs\web\runtime\temp\
CONF_PATH
E:\bjhuacan\Apache24\htdocs\web\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
FILTER_VALIDATE_BOOL
258
MB_CASE_UPPER
0
MB_CASE_LOWER
1
MB_CASE_TITLE
2
U_IDNA_PROHIBITED_ERROR
66560
U_IDNA_ERROR_START
66560
U_IDNA_UNASSIGNED_ERROR
66561
U_IDNA_CHECK_BIDI_ERROR
66562
U_IDNA_STD3_ASCII_RULES_ERROR
66563
U_IDNA_ACE_PREFIX_ERROR
66564
U_IDNA_VERIFICATION_ERROR
66565
U_IDNA_LABEL_TOO_LONG_ERROR
66566
U_IDNA_ZERO_LENGTH_LABEL_ERROR
66567
U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR
66568
U_IDNA_ERROR_LIMIT
66569
U_STRINGPREP_PROHIBITED_ERROR
66560
U_STRINGPREP_UNASSIGNED_ERROR
66561
U_STRINGPREP_CHECK_BIDI_ERROR
66562
IDNA_DEFAULT
0
IDNA_ALLOW_UNASSIGNED
1
IDNA_USE_STD3_RULES
2
IDNA_CHECK_BIDI
4
IDNA_CHECK_CONTEXTJ
8
IDNA_NONTRANSITIONAL_TO_ASCII
16
IDNA_NONTRANSITIONAL_TO_UNICODE
32
INTL_IDNA_VARIANT_2003
0
INTL_IDNA_VARIANT_UTS46
1
IDNA_ERROR_EMPTY_LABEL
1
IDNA_ERROR_LABEL_TOO_LONG
2
IDNA_ERROR_DOMAIN_NAME_TOO_LONG
4
IDNA_ERROR_LEADING_HYPHEN
8
IDNA_ERROR_TRAILING_HYPHEN
16
IDNA_ERROR_HYPHEN_3_4
32
IDNA_ERROR_LEADING_COMBINING_MARK
64
IDNA_ERROR_DISALLOWED
128
IDNA_ERROR_PUNYCODE
256
IDNA_ERROR_LABEL_HAS_DOT
512
IDNA_ERROR_INVALID_ACE_LABEL
1024
IDNA_ERROR_BIDI
2048
IDNA_ERROR_CONTEXTJ
4096
ADDON_PATH
E:\bjhuacan\Apache24\htdocs\web\addons\