[关闭]
@elibinary 2016-10-28T09:29:45.000000Z 字数 753 阅读 631

Sneakers 文档 - One 篇

未分类


queue name

  1. one.third_ensure_promotion

purpose

用于触发商品购买后的回馈优惠,比如0元购秤中,用户购买后必须连续记录一周后将会发放等值的优惠券给该用户

params

参数名 说明
order_no 订单编号
  1. {
  2. order_no: "xxx",
  3. }

queue name

  1. one.check_user_bought

purpose

用于校验用户是否在指定的时间段内购买了指定商品

params

参数名 说明
user_key user_key
ids 数组,数组内元素为商品ID
start_date 开始日期
end_date 结束日期
  1. {
  2. user_key: "xxx",
  3. ids: [1,2,3],
  4. start_date: "2016-01-01",
  5. start_date: "2016-02-01",
  6. }

queue name

  1. one.pay_bet

purpose

RPC 调用

用于创建赌瘦支付单,并返回 pingpp 的 pay_url

params

参数名 说明
user_key user_key
price 支付金额
sku 对应 one 中的商品的唯一标识码
note 备注 titile
pay_channel 支付渠道,如 'alipay', 'wx', 'wx_pub'
spbill_create_ip 发起请求的client ip
app_key app key
type pingpp
  1. {
  2. order: {
  3. user_key: "xxxxx",
  4. price: 50.0,
  5. sku: 'bet_13',
  6. note: '麦香赌瘦'
  7. },
  8. options: {
  9. pay_channel: 'alipay',
  10. spbill_create_ip: '256.178.1.199',
  11. app_key: 'one'
  12. },
  13. type: 'pingpp'
  14. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注