* @return mixed
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
*/
public function product($id)
{
$data = Product::with('category')->where('id', $id)->find();
//view_article('article', $id);
return $this->fetch($data['template'], compact('data'));
}
/**
* 加盟商案例
* @param $id
* @return mixed
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
USER | www |
HOME | /home/www |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_HOST | deformat.com.cn |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.deformat.com.cn |
SERVER_PORT | 443 |
SERVER_ADDR | 172.17.0.9 |
REMOTE_PORT | 57662 |
REMOTE_ADDR | 44.212.39.149 |
SERVER_SOFTWARE | nginx/1.20.2 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/2.0 |
DOCUMENT_ROOT | /www/wwwroot/www.deformat.com.cn/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /product/165.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/product/165.html |
SCRIPT_FILENAME | /www/wwwroot/www.deformat.com.cn/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711643022.171 |
REQUEST_TIME | 1711643022 |