提交 822c9e34 编写于 作者: D devil

细节优化

上级 fdd54a66
...@@ -75,8 +75,7 @@ class Buy extends Common ...@@ -75,8 +75,7 @@ class Buy extends Common
]; ];
// 优惠劵 // 优惠劵
$ret = PluginsService::PluginsControlCall( $ret = PluginsService::PluginsControlCall('coupon', 'coupon', 'buy', 'api', ['order_goods'=>$buy_goods, 'params'=>$params]);
'coupon', 'coupon', 'buy', 'api', ['order_goods'=>$buy_goods, 'params'=>$params]);
if($ret['code'] == 0 && isset($ret['data']['code']) && $ret['data']['code'] == 0) if($ret['code'] == 0 && isset($ret['data']['code']) && $ret['data']['code'] == 0)
{ {
$result['plugins_coupon_data'] = $ret['data']['data']; $result['plugins_coupon_data'] = $ret['data']['data'];
......
...@@ -266,6 +266,12 @@ class BuyService ...@@ -266,6 +266,12 @@ class BuyService
$v['extends'] = ''; $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['goods_url'] = MyUrl('index/goods/index', ['id'=>$v['goods_id']]);
$v['images_old'] = $v['images']; $v['images_old'] = $v['images'];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册