问题修复

pull/1/head
limu 9 months ago
parent 105d335647
commit 91ea84447b
  1. 4
      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;

Loading…
Cancel
Save