细节优化

feat/task1-c-wallet
devil 2020-08-20 12:47:42 +08:00
parent fdd54a668d
commit 822c9e3456
2 changed files with 7 additions and 2 deletions

View File

@ -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'];

View File

@ -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'];