public function projects(){
$param = $this->request->param();
$ResourcesInfoModel=new ResourcesInfoModel();
$id = $param['base_id'];
//项目数据
$info = Db::table('shop')->where(['status'=>1,'base_id'=>$id])->find();
$images = $ResourcesInfoModel->getMulti(['resources_id'=>['in',$info['images_id']]]);
$info['images_info'] = $images;
$this->assign('title',$info['name']);
$this->assign('info',$info);
return $this->fetch('projects');
}
}
param | { "\/index\/Industry\/projects_html": "", "base_id": "2" } |
ResourcesInfoModel |
Fatal error: Uncaught exception 'think\exception\ErrorException' with message 'array_merge(): Argument #1 is not an array' in D:\phpStudy1\PHPTutorial\WWW\dichandichan\dichan\thinkphp\library\think\Model.php:783 Stack trace: #0 [internal function]: think\Error::appError(2, 'array_merge(): ...', 'D:\\phpStudy1\\PH...', 783, Array) #1 D:\phpStudy1\PHPTutorial\WWW\dichandichan\dichan\thinkphp\library\think\Model.php(783): array_merge('', Array) #2 D:\phpStudy1\PHPTutorial\WWW\dichandichan\dichan\thinkphp\library\think\Model.php(2125): think\Model->toArray() #3 [internal function]: think\Model->jsonSerialize() #4 D:\phpStudy1\PHPTutorial\WWW\dichandichan\dichan\thinkphp\tpl\think_exception.tpl(393): json_encode(Object(app\common\model\ResourcesInfoModel), 128) #5 D:\phpStudy1\PHPTutorial\WWW\dichandichan\dichan\thinkphp\library\think\exception\Handle.php(166): include('D:\\phpStudy1\\PH...') #6 D:\phpStudy1\PHPTutorial\WWW\dichandichan\dichan\thinkphp\library\think\exception\Handle.php(84): think\exception\Handle->convertExce in D:\phpStudy1\PHPTutorial\WWW\dichandichan\dichan\thinkphp\tpl\think_exception.tpl on line 393
Call Stack
Environment VariablesGET Data/index/Industry/projects_html
base_id
2
POST Data
empty
Files
empty
Cookies
empty
Session
empty
Server/Request DataREDIRECT_STATUS
200
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
dichan.chungkong.cn
PATH
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\Administrator\AppData\Local\BypassRuntm
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.23 (Win32) OpenSSL/1.0.2j PHP/5.5.38
SERVER_NAME
dichan.chungkong.cn
SERVER_ADDR
172.16.8.96
SERVER_PORT
80
REMOTE_ADDR
44.199.225.221
DOCUMENT_ROOT
D:/phpStudy1/PHPTutorial/WWW/dichandichan/dichan/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
D:/phpStudy1/PHPTutorial/WWW/dichandichan/dichan/public
SERVER_ADMIN
admin@php.cn
SCRIPT_FILENAME
D:/phpStudy1/PHPTutorial/WWW/dichandichan/dichan/public/index.php
REMOTE_PORT
54742
REDIRECT_URL
/index/Industry/projects.html
REDIRECT_QUERY_STRING
/index/Industry/projects.html&base_id=2
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
/index/Industry/projects.html&base_id=2
REQUEST_URI
/index/Industry/projects.html?base_id=2
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711715373.864
REQUEST_TIME
1711715373
PATH_INFO
/index/Industry/projects.html
Environment Variables
empty
ThinkPHP ConstantsAPP_PATH
D:\phpStudy1\PHPTutorial\WWW\dichandichan\dichan\public/../application/
THINK_VERSION
5.0.10
THINK_START_TIME
1711715373.8645
THINK_START_MEM
151128
EXT
.php
DS
\
THINK_PATH
D:\phpStudy1\PHPTutorial\WWW\dichandichan\dichan\thinkphp\
LIB_PATH
D:\phpStudy1\PHPTutorial\WWW\dichandichan\dichan\thinkphp\library\
CORE_PATH
D:\phpStudy1\PHPTutorial\WWW\dichandichan\dichan\thinkphp\library\think\
TRAIT_PATH
D:\phpStudy1\PHPTutorial\WWW\dichandichan\dichan\thinkphp\library\traits\
ROOT_PATH
D:\phpStudy1\PHPTutorial\WWW\dichandichan\dichan\
EXTEND_PATH
D:\phpStudy1\PHPTutorial\WWW\dichandichan\dichan\extend\
VENDOR_PATH
D:\phpStudy1\PHPTutorial\WWW\dichandichan\dichan\vendor\
RUNTIME_PATH
D:\phpStudy1\PHPTutorial\WWW\dichandichan\dichan\runtime\
LOG_PATH
D:\phpStudy1\PHPTutorial\WWW\dichandichan\dichan\runtime\log\
CACHE_PATH
D:\phpStudy1\PHPTutorial\WWW\dichandichan\dichan\runtime\cache\
TEMP_PATH
D:\phpStudy1\PHPTutorial\WWW\dichandichan\dichan\runtime\temp\
CONF_PATH
D:\phpStudy1\PHPTutorial\WWW\dichandichan\dichan\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
|