创建订单的入参明细示例
<ul>
<li>content type : json</li>
</ul>
<pre><code>{
&quot;designee_switch&quot;:1,
&quot;department_uid&quot;: 2411206172000115,
&quot;customer_uid&quot;: 10241101401260001,
&quot;original_price&quot;: 300,
&quot;transaction_price&quot;: 250,
&quot;reduce_price&quot;: 50,
&quot;cost_price&quot;: 200,
&quot;coupon_price&quot;: 0,
&quot;buy_qty&quot;: 1,
&quot;free_switch&quot;: 0,
&quot;prepaid_switch&quot;: 0,
&quot;consume_switch&quot;: 1,
&quot;speed_switch&quot;: 1,
&quot;arrears_switch&quot;: 0,
&quot;new_customer_switch&quot;: 0,
&quot;inc_balance_price&quot;: 11,
&quot;inc_extra_price&quot;: 12,
&quot;inc_rewards_points&quot;: 13,
&quot;inc_arrears_price&quot;: 14,
&quot;dec_balance_price&quot;: 10,
&quot;dec_extra_price&quot;: 10,
&quot;dec_rewards_points&quot;: 10,
&quot;dec_arrears_price&quot;: 10,
&quot;shop_goods&quot;: [ //购买内容
{
&quot;total_transaction_per&quot;: 98.55,
&quot;guests_qty&quot;: 1,
&quot;guests_man_qty&quot;: 0,
&quot;guests_woman_qty&quot;: 1,
&quot;free_switch&quot;: 1,
&quot;goods_uid&quot;: 2412063775700122,
&quot;buy_qty&quot;: 1,
&quot;original_price&quot;: 300,
&quot;reduce_price&quot;: 50,
&quot;transaction_price&quot;: 250,
&quot;cost_price&quot;: 200,
&quot;coupon_price&quot;: 0,
&quot;bundle_goods_uid&quot;: 0,
&quot;consumable&quot;: [ //规格商品
{
&quot;consumable_goods_uid&quot;: 2412063745700122,
&quot;group_title&quot;: &quot;杯型&quot;,
&quot;original_price&quot;: 4,
&quot;transaction_price&quot;: 4
},
{
&quot;consumable_goods_uid&quot;: 2412115189000122,
&quot;group_title&quot;: &quot;温度&quot;,
&quot;original_price&quot;: 0,
&quot;transaction_price&quot;: 0
}
],
&quot;measure&quot;: [ //购买计次
{
&quot;expiry_forever_switch&quot;: 1,
&quot;expiry_timestamp&quot;: 0,
&quot;infinite_qty_switch&quot;: 0,
&quot;aggregate_qty&quot;: 10,
&quot;extra_qty&quot;: 2,
&quot;extra_cost_price&quot;: 19900,
&quot;limit_type&quot;: 1,
&quot;limit_qty&quot;: 5,
&quot;commission_calculate_type&quot;: 1,
&quot;employee_commission_type&quot;: 1,
&quot;employee_commission_value&quot;: 10,
&quot;employee_extra_commission_type&quot;: 1,
&quot;employee_extra_commission_value&quot;: &quot;10.88&quot;
},
{
&quot;expiry_forever_switch&quot;: 1,
&quot;expiry_timestamp&quot;: 0,
&quot;infinite_qty_switch&quot;: 0,
&quot;aggregate_qty&quot;: 10,
&quot;extra_qty&quot;: 2,
&quot;extra_cost_price&quot;: 19900,
&quot;limit_type&quot;: 1,
&quot;limit_qty&quot;: 5,
&quot;commission_calculate_type&quot;: 1,
&quot;employee_commission_type&quot;: 1,
&quot;employee_commission_value&quot;: 10,
&quot;employee_extra_commission_type&quot;: 1,
&quot;employee_extra_commission_value&quot;: 10
}
],
&quot;coupon&quot;: [ //购买优惠券
{
&quot;expiry_forever_switch&quot;: 0,
&quot;expiry_effect_timestamp&quot;: 1732255155,
&quot;expiry_expiration_timestamp&quot;: 1832255155,
&quot;disposable_switch&quot;: 0,
&quot;balance_price&quot;: 100,
&quot;limit_type&quot;: 2,
&quot;limit_type_payload&quot;: [
2412034760300122
],
&quot;limit_price_switch&quot;: 1,
&quot;limit_price&quot;: 1,
&quot;use_limit_price_switch&quot;: 0,
&quot;use_limit_price&quot;: 1
}
],
&quot;commission&quot;: [ //提成
{
&quot;guests_qty&quot;: 1,
&quot;guests_man_qty&quot;: 1,
&quot;guests_woman_qty&quot;: 0,
&quot;employee_uid&quot;: 2411275671100112,
&quot;employee_position_uid&quot;: 0,
&quot;employee_group_uid&quot;: 0,
&quot;commission_price&quot;: 100,
&quot;performance_price&quot;: 100,
&quot;designee_switch&quot;: 0,
&quot;real_free_price&quot;: 100,
&quot;real_cash_price&quot;: 100,
&quot;real_account_price&quot;: 100,
&quot;virtual_free_price&quot;: 100,
&quot;virtual_cash_price&quot;: 100,
&quot;virtual_account_price&quot;: 100,
&quot;cost_free_price&quot;: 100,
&quot;cost_cash_price&quot;: 100,
&quot;cost_account_price&quot;: 100,
&quot;pay_terms&quot;: [
{
&quot;title&quot;: &quot;余额&quot;,
&quot;pay_uid&quot;: 2411195113200189,
&quot;side_switch&quot;: 0,
&quot;inside_keyword&quot;: &quot;balance_price&quot;,
&quot;outside_keyword&quot;: &quot;undefined&quot;,
&quot;commission_price&quot;: 100,
&quot;performance_price&quot;: 100
},
{
&quot;title&quot;: &quot;余额&quot;,
&quot;pay_uid&quot;: 2411195113200189,
&quot;side_switch&quot;: 0,
&quot;inside_keyword&quot;: &quot;balance_price&quot;,
&quot;outside_keyword&quot;: &quot;undefined&quot;,
&quot;commission_price&quot;: 100,
&quot;performance_price&quot;: 100
}
]
}
],
&quot;pay_terms&quot;: [ //支付方式
{
&quot;title&quot;: &quot;现金&quot;,
&quot;pay_uid&quot;: 2411195119500189,
&quot;side_switch&quot;: 0,
&quot;inside_keyword&quot;: &quot;undefined&quot;,
&quot;outside_keyword&quot;: &quot;undefined&quot;,
&quot;pay_price&quot;: 90,
&quot;reduce_price&quot;: 10
},
{
&quot;title&quot;: &quot;现金&quot;,
&quot;pay_uid&quot;: 2411195119500189,
&quot;side_switch&quot;: 0,
&quot;inside_keyword&quot;: &quot;undefined&quot;,
&quot;outside_keyword&quot;: &quot;undefined&quot;,
&quot;pay_price&quot;: 90,
&quot;reduce_price&quot;: 10
}
]
}
],
&quot;order_datetime&quot;: &quot;2024-11-22 13:59:15&quot;,
&quot;remind_notify_switch&quot;: 1,
&quot;memo&quot;: &quot;备注&quot;,
&quot;guests_qty&quot;: 2,
&quot;guests_man_qty&quot;: 1,
&quot;guests_woman_qty&quot;: 1,
&quot;manual&quot;: [ //手工单号
123,
456
],
&quot;pay_terms&quot;: [ //支付方式
{
&quot;title&quot;: &quot;现金&quot;,
&quot;pay_uid&quot;: 2411195119500189,
&quot;side_switch&quot;: 0,
&quot;inside_keyword&quot;: &quot;undefined&quot;,
&quot;outside_keyword&quot;: &quot;undefined&quot;,
&quot;pay_price&quot;: 10
},
{
&quot;title&quot;: &quot;微信(扫码)&quot;,
&quot;pay_uid&quot;: 2411195143000189,
&quot;side_switch&quot;: 1,
&quot;inside_keyword&quot;: &quot;undefined&quot;,
&quot;outside_keyword&quot;: &quot;scan_wechat&quot;,
&quot;pay_price&quot;: 10
}
],
&quot;coupon_used&quot;: [ //优惠券使用
{
&quot;order_shop_goods_coupon_uid&quot;: 2412113862500004,
&quot;used_price&quot;: 3
}
],
&quot;measure_used&quot;: [ //计次使用
{
&quot;order_shop_goods_measure_uid&quot;: 2412105047000002,
&quot;used_aggregate_qty&quot;: 1,
&quot;used_extra_qty&quot;: 1,
&quot;inquiry_datetime&quot;: &quot;2024-12-22 10:00:00&quot;,
&quot;guests_qty&quot;: 1,
&quot;guests_man_qty&quot;: 0,
&quot;guests_woman_qty&quot;: 1,
&quot;commission&quot;: [ //提成
{
&quot;guests_qty&quot;: 1,
&quot;guests_man_qty&quot;: 1,
&quot;guests_woman_qty&quot;: 0,
&quot;employee_uid&quot;: 2411275671100112,
&quot;employee_position_uid&quot;: 0,
&quot;employee_group_uid&quot;: 0,
&quot;commission_price&quot;: 9,
&quot;performance_price&quot;: 9,
&quot;designee_switch&quot;: 0,
&quot;real_free_price&quot;: 9,
&quot;real_cash_price&quot;: 9,
&quot;real_account_price&quot;: 9,
&quot;virtual_free_price&quot;: 9,
&quot;virtual_cash_price&quot;: 9,
&quot;virtual_account_price&quot;: 9,
&quot;cost_free_price&quot;: 9,
&quot;cost_cash_price&quot;: 9,
&quot;cost_account_price&quot;: 9
}
]
}
]
}
</code></pre>
<p>> 逻辑流程</p>
<ul>
<li>接收请求数据</li>
<li>全局锁定交易(根据merchant_uid值)
<ul>
<li>有交易未完成时返回code=40423代表资源锁定被锁定</li>
<li>无锁定资源进入交易流程</li>
</ul></li>
<li>生成订单公共(系统)数据
<ul>
<li>生成系统订单号</li>
<li>转义订单时间为时间戳</li>
<li>设置订单类型为线下</li>
<li>判断会员消费</li>
<li>判断手工单号包含</li>
<li>预填充</li>
</ul></li>
<li>处理手工单号关联关系</li>
<li>商品消费consume_switch=1 && speed_switch=0 处理商品数据</li>
<li>支付方式</li>
<li>完成交易返回</li>
<li>站外支付扫码</li>
</ul>
<hr />
<p>> 原始定义</p>
<pre><code>{
&quot;department_uid&quot;:0,//订单归属部门 非员工部门
&quot;customer_uid&quot;:0,//会员唯一值 游客为0
&quot;customer_password&quot;:&quot;&quot;,//会员密码
&quot;customer_signature&quot;:&quot;&quot;,//会员签名
&quot;original_price&quot;:100,//原始订单价(分)
&quot;transaction_price&quot;:90,//订单成交价(分) - 营业额
&quot;reduce_price&quot;:10,//订单优惠金额(分)
&quot;cost_price&quot;:10,//订单成本金额(分)
&quot;coupon_price&quot;:10,//订单优惠券金额(分)
&quot;buy_qty&quot;:2,//购买数量
&quot;free_switch&quot;:0,//免单:0=否,1=是
&quot;prepaid_switch&quot;:0,//充值订单:0=否,1=是
&quot;consume_switch&quot;:1,//消费订单:0=否,1=是
&quot;speed_switch&quot;:1,//快速消费模式:0=否,1=是
&quot;arrears_switch&quot;:0,//欠款还款订单:0=否,1=是
&quot;new_customer_switch&quot;:1,//开卡订单:0=否,1=是
&quot;inc_balance_price&quot;:0,//增加余额(分)
&quot;inc_extra_price&quot;:0,//增加赠金(分)
&quot;inc_rewards_points&quot;:0,//增加积分
&quot;inc_arrears_price&quot;:0,//增加欠款(分)
&quot;dec_balance_price&quot;:0,//扣除余额(分)
&quot;dec_extra_price&quot;:0,//扣除赠金(分)
&quot;dec_rewards_points&quot;:0,//扣除积分
&quot;dec_arrears_price&quot;:0,//扣除欠款(分)
&quot;shop_goods&quot;:[//consume_switch=1 &amp;&amp; speed_switch=0时必填
{
&quot;guests_qty&quot;:2,//客数
&quot;guests_man_qty&quot;:1,//男客数
&quot;guests_woman_qty&quot;:1,//女客数
&quot;free_switch&quot;:0,//免单:0=否,1=是
&quot;goods_uid&quot;:24111138095000112,//购买商品商品uid 1000000000000001=快速消费 1000000000000010=无码商品
&quot;buy_qty&quot;:2,//购买数量
&quot;original_price&quot;:100,//原始价(分)
&quot;reduce_price&quot;:10,//优惠金额(分)
&quot;transaction_price&quot;:90,//成交价(分)
&quot;total_transaction_per&quot;:98.55,//成交价占总成交金额百分比
&quot;cost_price&quot;:10,//成本金额(分)
&quot;coupon_price&quot;:10,//使用优惠券金额(分)
&quot;bundle_goods_uid&quot;:0,//捆绑对象商品uid &gt;0时代表被对象商品捆绑销售
&quot;measure&quot;:[//购买生成的计次
{
&quot;expiry_forever_switch&quot;:0,//无限有效期:0=否,1=是
&quot;expiry_timestamp&quot;:1732853918,//到期时间戳(秒)
&quot;infinite_qty_switch&quot;:0,//无限次数:0=否,1=是
&quot;aggregate_qty&quot;:10,//次数
&quot;extra_qty&quot;:20,//赠送次数
&quot;extra_cost_price&quot;:1000,//赠送价值(分)
&quot;limit_type&quot;:1,//使用限制:0=不限制,1=天,2=周,3=年
&quot;limit_qty&quot;:2,//限制次数
&quot;commission_calculate_type&quot;:0,//业绩模式:0=整体计算,1=分别计算
&quot;employee_commission_type&quot;:0,//业绩计算方式:0=比例,1=固定
&quot;employee_commission_value&quot;:0,//业绩计算载荷(百分比/金额(分))
&quot;employee_extra_commission_type&quot;:0,//赠送业绩计算方式:0=比例,1=固定
&quot;employee_extra_commission_value&quot;:0,//赠送业绩计算载荷(百分比/金额(分))
}
],
&quot;coupon&quot;:[//购买生成的优惠券
{
&quot;expiry_fore ver_switch&quot;: 0,//无限有效期:0=否,1=是
&quot;expiry_effect_timestamp&quot;: 1733215176,//生效时间
&quot;expiry_expiration_timestamp&quot;: 1833215176,//截止时间
&quot;disposable_switch&quot;: 0,//单次抵扣:0=否,1=是
&quot;balance_price&quot;: 100,//可用金额
&quot;limit_type&quot;: 1,//使用限制:0=通用券,1=分类券,2=定向券
&quot;limit_type_payload&quot;: [],//使用限制载荷 分类券=goods_sort_uid列表 定向券=goods_uid列表
&quot;limit_price_switch&quot;: 1,//限制金额:0=否,1=是
&quot;limit_price&quot;: 10,//限制金额(分)
&quot;use_limit_price_switch&quot;: 0,//使用门槛:0=否,1=是
&quot;use_limit_price&quot;: 5//使用门槛金额(分)
}
],
&quot;consumable&quot;:[//附带的规格商品信息
{
&quot;consumable_goods_uid&quot;:2412063743300121,
&quot;group_title&quot;: &quot;温度&quot;,//组名称
&quot;original_price&quot;: 0,//选项原始价格
&quot;transaction_price&quot;: 0,//选项成交价格
},
{
&quot;consumable_goods_uid&quot;:2412063743300221,
&quot;group_title&quot;: &quot;杯型&quot;,//组名称
&quot;original_price&quot;: 4,//选项原始价格
&quot;transaction_price&quot;: 4,//选项成交价格
},
],
&quot;pay_terms&quot;:[//支付方式业绩
{
&quot;title&quot;: &quot;余额&quot;,//标题
&quot;pay_uid&quot;: 2411195113200189,//唯一值
&quot;side_switch&quot;: 0,//支付方式:0=站内,1=站外
&quot;inside_keyword&quot;: &quot;balance_price&quot;,//站内绑定关键字(会员) 空=无操作,balance_price=余额,extra_price=赠送余额,rewards_points=积分
&quot;outside_keyword&quot;: &quot;&quot;,//站外支付关键字 scan_wechat=扫码微信支付,scan_alipay=扫码支付宝
//↑字段为支付列表返回取整个对象 追加补入↓字段
&quot;pay_price&quot;:90,//支付金额(分)
&quot;reduce_price&quot;:10,//优惠金额(分)
//以下为冗余
//&quot;goods_uid&quot;:24111138095000112,
//&quot;goods_title&quot;:&quot;商品名称&quot;,
//&quot;goods_sort_uid&quot;:0,//商品分类
}
]
&quot;commission&quot;:[//员工业绩提成
{
&quot;guests_qty&quot;:1,//客数
&quot;guests_man_qty&quot;:1,//男客数
&quot;guests_woman_qty&quot;:0,//女客数
&quot;employee_uid&quot;:161656,//员工uid唯一值
&quot;employee_position_uid&quot;:0,//所用职位uid唯一值
&quot;employee_group_uid&quot;:0,//所用部门uid唯一值
&quot;commission_price&quot;:100,//提成(分)
&quot;performance_price&quot;:100,//业绩(分)
&quot;designee_switch&quot;:0,//指定:0=否,1=是
&quot;real_free_price&quot;:100,//实业绩免单金额(分)
&quot;real_cash_price&quot;:100,//实业绩现金金额(分)
&quot;real_account_price&quot;:100,//实业绩账户金额(分)
&quot;virtual_free_price&quot;:100,//虚业绩免单金额(分)
&quot;virtual_cash_price&quot;:100,//虚业绩现金金额(分)
&quot;virtual_account_price&quot;:100,//虚业绩账户金额(分)
&quot;cost_free_price&quot;:100,//成本业绩免单金额(分)
&quot;cost_cash_price&quot;:100,//成本业绩现金金额(分)
&quot;cost_account_price&quot;:100,//成本业绩账户金额(分)
&quot;pay_terms&quot;:[//支付方式业绩
{
&quot;title&quot;: &quot;余额&quot;,//标题
&quot;pay_uid&quot;: 2411195113200189,//唯一值
&quot;side_switch&quot;: 0,//支付方式:0=站内,1=站外
&quot;inside_keyword&quot;: &quot;balance_price&quot;,//站内绑定关键字(会员) 空=无操作,balance_price=余额,extra_price=赠送余额,rewards_points=积分
&quot;outside_keyword&quot;: &quot;&quot;,//站外支付关键字 scan_wechat=扫码微信支付,scan_alipay=扫码支付宝
//↑字段为支付列表返回取整个对象 追加补入↓字段
&quot;commission_price&quot;:100,//提成(分)
&quot;performance _price&quot;:100,//业绩(分)
}
],
//以下为冗余
//&quot;goods_uid&quot;:24111138095000112,
//&quot;goods_title&quot;:&quot;商品名称&quot;,
//&quot;goods_sort_uid&quot;:0,//商品分类
}
]
}
],
&quot;order_datetime&quot;:&quot;2024-11-14 06:35:22&quot;,//订单时间
&quot;manual&quot;:[//订单关联手工单号
123,
456
],
&quot;remind_notify_switch&quot;:1,//通知
&quot;memo&quot;:&quot;备注&quot;,
&quot;guests_qty&quot;:2,//客数
&quot;guests_man_qty&quot;:1,//男客数
&quot;guests_woman_qty&quot;:1,//女客数
&quot;pay_terms&quot;[//付款方式
{
&quot;title&quot;: &quot;余额&quot;,//标题
&quot;pay_uid&quot;: 2411195113200189,//唯一值
&quot;side_switch&quot;: 0,//支付方式:0=站内,1=站外
&quot;inside_keyword&quot;: &quot;balance_price&quot;,//站内绑定关键字(会员) 空=无操作,balance_price=余额,extra_price=赠送余额,rewards_points=积分
&quot;outside_keyword&quot;: &quot;&quot;,//站外支付关键字 scan_wechat=扫码微信支付,scan_alipay=扫码支付宝
//↑字段为支付列表返回取整个对象 追加补入↓字段
&quot;pay_price&quot;:90,//支付金额(分)
}
],
&quot;coupon_used&quot;:[//优惠券使用
{
&quot;order_shop_goods_coupon_uid&quot;:466546565,//使用的优惠券uid唯一值
&quot;used_price&quot;:90,//使用金额(分)
}
],
&quot;measure_used&quot;:[//附加使用计次
{
&quot;guests_qty&quot;:2,//客数
&quot;guests_man_qty&quot;:1,//男客数
&quot;guests_woman_qty&quot;:1,//女客数
&quot;order_shop_goods_measure_uid&quot;:24111138095000112//使用计次对应计次订单唯一值 使用时该值必填
&quot;used_aggregate_qty&quot;:1,//使用次数
&quot;used_extra_qty&quot;:1,//使用赠送次数
&quot;inquiry_datetime&quot;:&quot;2025-01-01 10:00:00&quot;,
&quot;commission&quot;:[//员工业绩提成
{
&quot;guests_qty&quot;:1,//客数
&quot;guests_man_qty&quot;:1,//男客数
&quot;guests_woman_qty&quot;:0,//女客数
&quot;employee_uid&quot;:161656,//员工uid唯一值
&quot;employee_position_uid&quot;:0,//所用职位uid唯一值
&quot;employee_group_uid&quot;:0,//所用部门uid唯一值
&quot;commission_price&quot;:100,//提成(分)
&quot;performance_price&quot;:100,//业绩(分)
&quot;designee_switch&quot;:0,//指定:0=否,1=是
&quot;real_free_price&quot;:100,//实业绩免单金额(分)
&quot;real_cash_price&quot;:100,//实业绩现金金额(分)
&quot;real_account_price&quot;:100,//实业绩账户金额(分)
&quot;virtual_free_price&quot;:100,//虚业绩免单金额(分)
&quot;virtual_cash_price&quot;:100,//虚业绩现金金额(分)
&quot;virtual_account_price&quot;:100,//虚业绩账户金额(分)
&quot;cost_free_price&quot;:100,//成本业绩免单金额(分)
&quot;cost_cash_price&quot;:100,//成本业绩现金金额(分)
&quot;cost_account_price&quot;:100,//成本业绩账户金额(分)
&quot;pay_terms&quot;:[//支付方式业绩
{
&quot;title&quot;: &quot;余额&quot;,//标题
&quot;pay_uid&quot;: 2411195113200189,//唯一值
&quot;side_switch&quot;: 0,//支付方式:0=站内,1=站外
&quot;inside_keyword&quot;: &quot;balance_price&quot;,//站内绑定关键字(会员) 空=无操作,balance_price=余额,extra_price=赠送余额,rewards_points=积分
&quot;outside_keyword&quot;: &quot;&quot;,//站外支付关键字 scan_wechat=扫码微信支付,scan_alipay=扫码支付宝
//↑字段为支付列表返回取整个对象 追加补入↓字段
&quot;commission_price&quot;:100,//提成(分)
&quot;performance _price&quot;:100,//业绩(分)
}
],
//以下为冗余
//&quot;goods_uid&quot;:24111138095000112,
//&quot;goods_title&quot;:&quot;商品名称&quot;,
//&quot;goods_sort_uid&quot;:0,//商品分类
}
]
}
],
//以下为服务端自动追加字段
//&quot;out_trade_no&quot;:1241115508810001,//系统订单号 16位正整数 年月日秒订单数
//&quot;customer_switch&quot;:0,//会员订单:0=否,1=是 由customer_uid转换而来 customer_uid&gt;0=1 冗余
//&quot;pay_status&quot;:0,//订单状态:0=已完成,1=待支付 包含扫码三方支付时为1 支付成功后变为0
//&quot;order_timestamp&quot;:1731537322,//订单时间时间戳 由订单时间转换而来 冗余
//&quot;employee_commission_switch&quot;:1,//是否包含提成:0=否,1=是 由shop_goods.*.employee_commission判断而来 冗余
//&quot;coupon_switch&quot;:1,//是否包含优惠券:0=否,1=是 由shop_goods.*.use_coupon判断而来 冗余
//&quot;transaction_order_no_switch&quot;:1,//是否包含手工单号:0=否,1=是 由transaction_order_no&gt;0判断而来 冗余
//&quot;goods_free_switch&quot;:0,//是否包含商品免单:0=否,1=是 由shop_goods.*.free_switch=1判断而来 冗余
//&quot;outside_pay_switch&quot;:1,//是否包含三方支付:0=否,1=是 pay_terms.*.side_switch判断而来 冗余
//&quot;designee_switch&quot;:0,//指定:0=否,1=是 由shop_goods.*.employee_commission.*.designee_switch=1判断而来 冗余
//&quot;buy_measure_switch&quot;:0,//包含计次购买订单:0=否,1=是 由shop_goods.*.buy=1&amp;shop_goods.*.goods_type=2转换而来 冗余
//&quot;use_measure_switch&quot;:0,//包含计次使用订单:0=否,1=是 由shop_goods.*.buy=2&amp;shop_goods.*.goods_type=2转换而来 冗余
//&quot;order_source_type&quot;:0,//订单类型:0=线下,2=线上
//&quot;merchant_uid&quot;:1110,//店铺id(order_type=2时所需)
}</code></pre>