* @return mixed
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getGoodsInfo($id)
{
$auth = new Auth();
$data = GoodsModel::where('is_del',0)->get($id);
$data['comment'] = $data->comments()->where('is_show',0)->order('id','desc')->select();
if(count($data['specPrice'])>0){
$data['specList'] = $this->getSpec($id);
}
$data['is_sc'] = 0;
if ($auth->checkLoginGlobal()){
$list = CollectModel::where('user_id', $auth->member_info->id)->where('info_id',$id)->where('type_id',0)->find();
if(!empty($list)){
$data['is_sc'] = 1;
}
idea_ | { "pid": 0 } |
USER | www |
HOME | /home/www |
HTTP_HOST | yuanfangshandong.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | yuanfang.99fuku.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.26.253.57 |
REMOTE_PORT | 37420 |
REMOTE_ADDR | 44.201.59.20 |
SERVER_SOFTWARE | nginx/1.18.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/yuanfang.99fuku.com |
DOCUMENT_URI | /index.php |
REQUEST_URI | /goods/item/6820.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/goods/item/6820.html |
SCRIPT_FILENAME | /www/wwwroot/yuanfang.99fuku.com/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711721959.6093 |
REQUEST_TIME | 1711721959 |
url | /goods/item/6820.html |
ref | Resource |
ent | claudebot |
site | http://php.lai668.cc |
road | /?yuanfangshandong.com/goods/item/6820.html |
regs | @Baidu|Sogou|Yisou|Soso|Haosou|Spider|So.com|Sm.cn@i |
area | true |
PUBLIC_PATH | /public/ |
UPLOAD_PATH | /upload/ |
VIEW_PATH | ./template/skin001/pc/html_8768/ |