@elibinary
2016-10-28T09:29:45.000000Z
字数 753
阅读 631
未分类
one.third_ensure_promotion
用于触发商品购买后的回馈优惠,比如0元购秤中,用户购买后必须连续记录一周后将会发放等值的优惠券给该用户
参数名 | 说明 |
---|---|
order_no | 订单编号 |
{
order_no: "xxx",
}
one.check_user_bought
用于校验用户是否在指定的时间段内购买了指定商品
参数名 | 说明 |
---|---|
user_key | user_key |
ids | 数组,数组内元素为商品ID |
start_date | 开始日期 |
end_date | 结束日期 |
{
user_key: "xxx",
ids: [1,2,3],
start_date: "2016-01-01",
start_date: "2016-02-01",
}
one.pay_bet
RPC 调用
用于创建赌瘦支付单,并返回 pingpp 的 pay_url
参数名 | 说明 |
---|---|
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 |
{
order: {
user_key: "xxxxx",
price: 50.0,
sku: 'bet_13',
note: '麦香赌瘦'
},
options: {
pay_channel: 'alipay',
spbill_create_ip: '256.178.1.199',
app_key: 'one'
},
type: 'pingpp'
}