细节优化
parent
fdd54a668d
commit
822c9e3456
|
|
@ -75,8 +75,7 @@ class Buy extends Common
|
|||
];
|
||||
|
||||
// 优惠劵
|
||||
$ret = PluginsService::PluginsControlCall(
|
||||
'coupon', 'coupon', 'buy', 'api', ['order_goods'=>$buy_goods, 'params'=>$params]);
|
||||
$ret = PluginsService::PluginsControlCall('coupon', 'coupon', 'buy', 'api', ['order_goods'=>$buy_goods, 'params'=>$params]);
|
||||
if($ret['code'] == 0 && isset($ret['data']['code']) && $ret['data']['code'] == 0)
|
||||
{
|
||||
$result['plugins_coupon_data'] = $ret['data']['data'];
|
||||
|
|
|
|||
|
|
@ -266,6 +266,12 @@ class BuyService
|
|||
$v['extends'] = '';
|
||||
}
|
||||
|
||||
// 无封面图片
|
||||
if(empty($v['images']))
|
||||
{
|
||||
$v['images'] = ResourcesService::AttachmentPathHandle(GoodsService::GoodsImagesCoverHandle($v['goods_id']));
|
||||
}
|
||||
|
||||
// 基础信息
|
||||
$v['goods_url'] = MyUrl('index/goods/index', ['id'=>$v['goods_id']]);
|
||||
$v['images_old'] = $v['images'];
|
||||
|
|
|
|||
Loading…
Reference in New Issue