@qq286531097
2019-04-08T06:58:20.000000Z
字数 1220
阅读 306
VFone
$params['data'] = json_encode($params);$params['isCheckPrice'] = false; //是否验证促销金额$params['shopId'] = 1; //对应的商家id(BBC逻辑新增字段)$info = app::get('syspromotion')->rpcCall('promotion.tradepromotion.getInfo', $params);
array('3' => array('sku_id' => '3', //货品ID (替换)(原来 product_id)'item_id' => '3', //商品ID (替换)(原来的 goods_id)'style_color' => 'pink', //颜色'price' => '1000', //销售价'cost' => '990', //商促后价格'cat_id' => '3', //分类ID'quantity' => '3', //购买数量'brand_id' => '1', //品牌ID'total_price' => '2970', //商促后的总价),'shopId' => 1, //对应的商家id(BBC逻辑新增字段)
二维数组结构Array([0] => Array([promotion_id] => 1[promotion_name] => 满3件打5折[promotion_type] => fullminus/fulldiscount/xydiscount //(满减/满折/X件Y折)[products] => Array([3] => 3|2965|5[4] => 4|2965|5)[discount_amount] => 1485 ////(活动减去的金额)[items] => 3|2965|5,4|2965|5 ////(货品ID|订促后价格|分摊的金额)[item_ids] => Array([0] => 3[1] => 3) //(新增)[sku_ids] => Array([0] => 3[1] => 4) //(新增))[total_price] => 2970 //(商促后总值)[cost_price] => 1485 //(总共减去的订促金额)[subtotal_price] => 1485 //(订促后的价格))
Array([0] => Array([promotion_id] => 3[rel_promotion_id] => 3[promotion_name] => 满1000减10[promotion_type] => fullminus[promotion_desc] =>[start_time] => 1552110080[end_time] => 1552172940[use_bound] => allgoods[bound_value] =>[condition_value] => 1000|10[canjoin_repeat] => 0))
