From 91ea84447bafb9eca9232f1ec57eaf5cba32f515 Mon Sep 17 00:00:00 2001 From: limu Date: Mon, 19 Feb 2024 11:26:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/model/Goods.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/model/Goods.php b/app/api/model/Goods.php index f701052e..74959ddf 100644 --- a/app/api/model/Goods.php +++ b/app/api/model/Goods.php @@ -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;