Commit 648d97266c1fe8f85f9517c452c4bb5c0ff0ae6b

Authored by zhouhaihai
1 parent d705a315

支付bug

Showing 2 changed files with 6 additions and 7 deletions   Show diff stats
src/actions/StoreAction.lua
1 local _M = {} 1 local _M = {}
2 2
3 -local serverId = tonumber(skynet.getenv("servId"))  
4 local md5 = require "md5" 3 local md5 = require "md5"
5 4
6 -- 入口在正式服关闭 -- mock 充值 5 -- 入口在正式服关闭 -- mock 充值
src/models/RolePlugin.lua
1 1
2 - 2 +local serverId = tonumber(skynet.getenv("servId"))
3 local RolePlugin = {} 3 local RolePlugin = {}
4 4
5 function RolePlugin.bind(Role) 5 function RolePlugin.bind(Role)
@@ -1562,18 +1562,18 @@ function RolePlugin.bind(Role) @@ -1562,18 +1562,18 @@ function RolePlugin.bind(Role)
1562 return false, "finsh" 1562 return false, "finsh"
1563 end 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 end 1567 end
1568 - orderObject:setProperty("status", msg.status) 1568 + orderObject:setProperty("status", status)
1569 1569
1570 -- 开始下单 1570 -- 开始下单
1571 if status == "success" then 1571 if status == "success" then
1572 elseif status == "fail" then 1572 elseif status == "fail" then
1573 - redisproxy:hdel(string.format(R_ORDERS, roleId), orderId) 1573 + redisproxy:hdel(string.format(R_ORDERS, roleId), rechargeId)
1574 elseif status == "finsh" then 1574 elseif status == "finsh" then
1575 orderObject:setProperty("finishTime", skynet.time()) 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 end 1577 end
1578 1578
1579 if status ~= "unknow" then 1579 if status ~= "unknow" then