lqmac 9 months ago
parent 37500a6da7
commit 8c2cfb5ae6
  1. 3
      app/api/model/Goods.php

@ -260,7 +260,8 @@ class Goods extends GoodsModel
'file_id' => $file_id,
])->field('file_path')->find()->file_path;
$v['image'] = "https://".$_SERVER['HTTP_HOST'] . '/uploads/' . $file_path;
$v['end_time'] = strtotime($info->p_time) - time();
//$v['end_time'] = strtotime($info->p_time) - time();
$v['end_time'] = $info->p_time ? strtotime($info->p_time) - time() : 0;
}
return $list;

Loading…
Cancel
Save