return call_user_func_array([$this, 'where'], $args);
} elseif ($this->model && method_exists($this->model, 'scope' . $method)) {
// 动态调用命名范围
$method = 'scope' . $method;
array_unshift($args, $this);
call_user_func_array([$this->model, $method], $args);
return $this;
} else {
throw new Exception('method not exist:' . ($this->model ? get_class($this->model) : static::class) . '->' . $method);
}
}
/**
* 扩展查询方法
* @access public
* @param string|array $method 查询方法名
* @param callable $callback
* @return void
id | 0 |
p | 3 |
PHPSESSID | 58lk34ijcd6sd9djmu193h0on4 |
think | { "last_url": "http:\/\/www.aichance.com.cn\/filezilla\/album\/show\/menu_id\/4.html" } |
USER | nobody |
HOME | / |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /data/user/htdocs/public/index.php |
PATH_INFO | |
QUERY_STRING | s=/channel/search/l/en&id=0&p=3 |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /channel/search/l/en?id=0&p=3 |
DOCUMENT_URI | /index.php |
DOCUMENT_ROOT | /data/user/htdocs/public |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_SCHEME | http |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.18.0 |
REMOTE_ADDR | 45.43.221.82 |
REMOTE_PORT | 40962 |
SERVER_ADDR | 10.17.20.151 |
SERVER_PORT | 80 |
SERVER_NAME | wh-ncfj639akasej2ac424.my3w.com |
REDIRECT_STATUS | 200 |
HTTP_USER_AGENT | Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) |
HTTP_HOST | www.aichance.com.cn |
HTTP_ACCEPT | */* |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_COOKIE | PHPSESSID=58lk34ijcd6sd9djmu193h0on4 |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1695952323.8435 |
REQUEST_TIME | 1695952323 |
DS | / |
ROOT_PATH | /data/user/htdocs/ |
APP_PATH | /data/user/htdocs/app/ |
WWW_ROOT | /data/user/htdocs/public/ |
WOO_PATH | /data/user/htdocs/woo/ |
ADDONS_PATH | /data/user/htdocs/addons/ |
APP_CACHE_DIR | /data/user/htdocs/data/cache/ |
SMARTY_DIR | /data/user/htdocs/include/smarty-3.1.27/libs/ |
SMARTY_SYSPLUGINS_DIR | /data/user/htdocs/include/smarty-3.1.27/libs/sysplugins/ |
SMARTY_PLUGINS_DIR | /data/user/htdocs/include/smarty-3.1.27/libs/plugins/ |
SMARTY_MBSTRING | true |
SMARTY_RESOURCE_CHAR_SET | utf-8 |
SMARTY_RESOURCE_DATE_FORMAT | %b %e, %Y |
SMARTY_SPL_AUTOLOAD | 0 |