mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-03 08:20:36 +00:00
update crmeb/app/services/product/product/StoreProductServices.php.
修复商品无主图视频时,前端显示视频播放图标
This commit is contained in:
parent
da683ae89a
commit
dca85a152e
@ -1257,7 +1257,7 @@ class StoreProductServices extends BaseServices
|
||||
$siteUrl = sys_config('site_url');
|
||||
$storeInfo['image'] = set_file_url($storeInfo['image'], $siteUrl);
|
||||
$storeInfo['image_base'] = set_file_url($storeInfo['image'], $siteUrl);
|
||||
$storeInfo['video_link'] = strpos($storeInfo['video_link'],'http') === false ? sys_config('site_url').$storeInfo['video_link'] : $storeInfo['video_link'];
|
||||
$storeInfo['video_link'] = empty($storeInfo['video_link']) ? '' : strpos($storeInfo['video_link'],'http') === false ? sys_config('site_url').$storeInfo['video_link'] : $storeInfo['video_link'];
|
||||
$storeInfo['fsales'] = $storeInfo['ficti'] + $storeInfo['sales'];
|
||||
|
||||
/** @var QrcodeServices $qrcodeService */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user