中 JSON 字段的使用技巧
PromotionVariant
在常见的电商平台中,一个促销活动通常不会涉及所有的商品, 尤其是类似淘宝这种B2C模式的平台,促销通常是以商家报名的形式展开的....: null,
asset_url: null,
rest: null,
config: null,
position: 0,
began_at: '2018-12...对于自营网站,由网站运营创建促销,挑选变体并添加到promotion_variants表中.对于B2C平台,由网站运营创建促销,商家选择变体并报名参与本次促销,运营审核后将其添加到相应的promotion_variants...-12-25 00:00:00',
ended_at: '2018-12-26 00:00:00'
}
// action
{
'id': 1,
'promotion_id':...unit_discount',
'rest': {
variant_name: 'xxx', // 秒杀期间变体名称
image: 'xxx', // 秒杀期间变体图片