* @access protected
* @param array $options 查询参数
* @throws ModelNotFoundException
* @throws DataNotFoundException
*/
protected function throwNotFound($options = [])
{
if (!empty($this->model)) {
$class = get_class($this->model);
throw new ModelNotFoundException('model data Not Found:' . $class, $class, $options);
}
$table = is_array($options['table']) ? key($options['table']) : $options['table'];
throw new DataNotFoundException('table data not Found:' . $table, $table, $options);
}
/**
* 查找多条记录 如果不存在则抛出异常
* @access public
* @param array|string|Query|\Closure $data
json | [] |
json_assoc | false |
field_type | [] |
fail | true |
table | product |
where | { "AND": { "id": [ "id", "=", "517" ] } } |
field | * |
data | { "id": "517" } |
order | [] |
join | [] |
union | [] |
strict | true |
master | false |
lock | false |
fetch_pdo | false |
fetch_sql | false |
distinct | false |
group | |
having | |
force | |
comment |
USER | www |
HOME | /home/www |
HTTP_HOST | dlfugu.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | /index/product/read/id/517.html |
REDIRECT_STATUS | 200 |
SERVER_NAME | dlfugu.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.24.107.237 |
REMOTE_PORT | 35010 |
REMOTE_ADDR | 18.206.76.45 |
SERVER_SOFTWARE | nginx/1.15.10 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/dlfugu.com/public |
DOCUMENT_URI | /index.php/index/product/read/id/517.html |
REQUEST_URI | /index.php/index/product/read/id/517.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | |
SCRIPT_FILENAME | /www/wwwroot/dlfugu.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php/index/product/read/id/517.html |
REQUEST_TIME_FLOAT | 1711688027.3809 |
REQUEST_TIME | 1711688027 |