支付模块接口文档 - xiao-ren-wu/Longines GitHub Wiki
添加支付订单数据,给页面返回数据
请求方式:POST localhost:8080/Longines/OrderPay
request
{
oId 订单Id
}
response
{
"uId": 1,
"pic": "http://img02.store.sogou.com/app/a/10010016/0",
"aAmount": 50,
"pId": 1476,
"state": 4,"初始状态为4"
"msg": null
}
设置密码
请求方式:POST localhost:8080/Longines/InsertPayCod
request
{
uId 用户Id
payCod 支付密码
}
response
success
{
"uId": 1,
"pic": "http://img02.store.sogou.com/app/a/10010016/0",
"aAmount": 50,
"pId": 1476,
"state": 4,
"msg": "设置密码成功"
}
fail
{
"uId": 1,
"pic": "http://img02.store.sogou.com/app/a/10010016/0",
"aAmount": 50,
"pId": 1476,
"state": 4,
"msg": "设置密码失败"
}
是否支付成功
请求方式:POST localhost:8080/Longines/IfSuccess
request
{
pId 支付Id
payCod 支付密码
}
response
success
{
"uId": 1,
"pic": "http://img02.store.sogou.com/app/a/10010016/0",
"aAmount": 50,
"pId": 1476,
"state": 0, "支付成功"
"msg": "设置密码成功"
}
fail
{
"uId": 1,
"pic": "http://img02.store.sogou.com/app/a/10010016/0",
"aAmount": 50,
"pId": 1476,
"state": 1,"密码不正确"
"msg": "设置密码成功"
}
{
"uId": 1,
"pic": "http://img02.store.sogou.com/app/a/10010016/0",
"aAmount": 50,
"pId": 1476,
"state": 3,"密码未设置"
"msg": "设置密码成功"
}
{
"uId": 1,
"pic": "http://img02.store.sogou.com/app/a/10010016/0",
"aAmount": 50,
"pId": 1476,
"state": 2,"用户余额不足"
"msg": "设置密码成功"
}