调整格式
This commit is contained in:
parent
0f91c9031e
commit
ebf6ed59ca
25
doc/支付流程.md
25
doc/支付流程.md
@ -35,37 +35,59 @@ CREATE TABLE `orderinfo` (
|
||||
一、通知类支付流程
|
||||
|
||||
1、proxyserver收到平台通知后在orderinfo插入一条记录(如果发现orderid在数据库里已存在则跳过该步骤)
|
||||
|
||||
orderid: 游戏唯一订单号
|
||||
|
||||
roleid: 角色id
|
||||
|
||||
server_id: serverid
|
||||
|
||||
channel: 渠道id
|
||||
|
||||
gameid: 游戏id写死1009
|
||||
|
||||
openid: 用户openid
|
||||
|
||||
itemid: 商品id
|
||||
|
||||
try_count: 0
|
||||
|
||||
ipv4: 商户方的ip地址
|
||||
|
||||
status: 0(新添加订单)
|
||||
|
||||
confirmtime: 0
|
||||
|
||||
sp_相关字段
|
||||
|
||||
sp_orderid: 平台订单号
|
||||
|
||||
sp_amount: 平台实际扣费
|
||||
|
||||
sp_confirm_time: 平台扣费时间(当前时间)
|
||||
|
||||
sp_pay_result:设为1(扣费成功)
|
||||
|
||||
2、当订单的status为0并且sp_pay_result为1,则调用gameserver发货
|
||||
|
||||
如果成功更新如下字段
|
||||
|
||||
status: 1已经完成订单(发货成功)
|
||||
|
||||
confirmtime: 发货时间
|
||||
|
||||
二、预下单类支付流程
|
||||
|
||||
1、同通知类支付流程1
|
||||
|
||||
但是sp字段设置为如下
|
||||
|
||||
sp_orderid: 空
|
||||
|
||||
sp_amount: 0
|
||||
|
||||
sp_confirm_time: 0
|
||||
|
||||
sp_pay_result:设为0(未确认)
|
||||
|
||||
2、同通知类支付流程2
|
||||
@ -74,6 +96,9 @@ sp_pay_result:设为0(未确认)
|
||||
当sp_pay_result为1并且status为0时需要补单,为了避免gameserver导致的重发最好设置补发的上线次数避免无限补发
|
||||
|
||||
补单成功后更新如下字段
|
||||
|
||||
status: 1已经完成订单(发货成功)
|
||||
|
||||
confirmtime: 发货时间
|
||||
|
||||
try_count: try_count + 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user