Commit 648d97266c1fe8f85f9517c452c4bb5c0ff0ae6b
1 parent
d705a315
支付bug
Showing
2 changed files
with
6 additions
and
7 deletions
Show diff stats
src/actions/StoreAction.lua
src/models/RolePlugin.lua
1 | 1 | |
2 | - | |
2 | +local serverId = tonumber(skynet.getenv("servId")) | |
3 | 3 | local RolePlugin = {} |
4 | 4 | |
5 | 5 | function RolePlugin.bind(Role) |
... | ... | @@ -1562,18 +1562,18 @@ function RolePlugin.bind(Role) |
1562 | 1562 | return false, "finsh" |
1563 | 1563 | end |
1564 | 1564 | |
1565 | - if msg.platformOrder then | |
1566 | - orderObject:setProperty("transactionId", msg.platformOrder) | |
1565 | + if platformOrder then | |
1566 | + orderObject:setProperty("transactionId", platformOrder) | |
1567 | 1567 | end |
1568 | - orderObject:setProperty("status", msg.status) | |
1568 | + orderObject:setProperty("status", status) | |
1569 | 1569 | |
1570 | 1570 | -- 开始下单 |
1571 | 1571 | if status == "success" then |
1572 | 1572 | elseif status == "fail" then |
1573 | - redisproxy:hdel(string.format(R_ORDERS, roleId), orderId) | |
1573 | + redisproxy:hdel(string.format(R_ORDERS, roleId), rechargeId) | |
1574 | 1574 | elseif status == "finsh" then |
1575 | 1575 | orderObject:setProperty("finishTime", skynet.time()) |
1576 | - redisproxy:hdel(string.format(R_ORDERS, roleId), orderId) | |
1576 | + redisproxy:hdel(string.format(R_ORDERS, roleId), rechargeId) | |
1577 | 1577 | end |
1578 | 1578 | |
1579 | 1579 | if status ~= "unknow" then | ... | ... |