Commit ffb3e2c5b6516907e1f789086e3403cadbc31089
1 parent
1d83eec2
支付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) |
... | ... | @@ -1599,18 +1599,18 @@ function RolePlugin.bind(Role) |
1599 | 1599 | return false, "finsh" |
1600 | 1600 | end |
1601 | 1601 | |
1602 | - if msg.platformOrder then | |
1603 | - orderObject:setProperty("transactionId", msg.platformOrder) | |
1602 | + if platformOrder then | |
1603 | + orderObject:setProperty("transactionId", platformOrder) | |
1604 | 1604 | end |
1605 | - orderObject:setProperty("status", msg.status) | |
1605 | + orderObject:setProperty("status", status) | |
1606 | 1606 | |
1607 | 1607 | -- 开始下单 |
1608 | 1608 | if status == "success" then |
1609 | 1609 | elseif status == "fail" then |
1610 | - redisproxy:hdel(string.format(R_ORDERS, roleId), orderId) | |
1610 | + redisproxy:hdel(string.format(R_ORDERS, roleId), rechargeId) | |
1611 | 1611 | elseif status == "finsh" then |
1612 | 1612 | orderObject:setProperty("finishTime", skynet.time()) |
1613 | - redisproxy:hdel(string.format(R_ORDERS, roleId), orderId) | |
1613 | + redisproxy:hdel(string.format(R_ORDERS, roleId), rechargeId) | |
1614 | 1614 | end |
1615 | 1615 | |
1616 | 1616 | if status ~= "unknow" then | ... | ... |