|
|
|
@ -251,12 +251,12 @@ class Goods extends GoodsModel |
|
|
|
|
'store_id' => request()->header()['storeid'], |
|
|
|
|
'goods_id' => $v['goods_id'], |
|
|
|
|
])->field('image_id')->find()->image_id; |
|
|
|
|
|
|
|
|
|
$file_path = UploadFileModel::where([ |
|
|
|
|
'store_id' => request()->header()['storeid'], |
|
|
|
|
'file_id' => $file_id, |
|
|
|
|
])->field('file_path')->find()->file_path; |
|
|
|
|
$v['image'] = $_SERVER['HTTP_HOST'] . '/uploads/' . $file_path; |
|
|
|
|
$v['image'] = "https://".$_SERVER['HTTP_HOST'] . '/uploads/' . $file_path; |
|
|
|
|
$v['end_time'] = strtotime($info->p_time) - time(); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
return $list; |
|
|
|
|