Commit 6df9d5e1f127a2febef4a3a791985d7add5f9bfc
1 parent
e9da8c21
mycard twd
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/models/RolePlugin.lua
... | ... | @@ -1829,6 +1829,7 @@ function RolePlugin.bind(Role) |
1829 | 1829 | request.pay_time = data.pay_time |
1830 | 1830 | request.transactionId = data.order_no |
1831 | 1831 | request.extension_info = data.extension_info |
1832 | + request.is_mycard = 1 | |
1832 | 1833 | ]] |
1833 | 1834 | function Role:handlePurchase(params) |
1834 | 1835 | local roleId = self:getProperty("id") |
... | ... | @@ -1844,7 +1845,7 @@ function RolePlugin.bind(Role) |
1844 | 1845 | end |
1845 | 1846 | local rechargeId = back |
1846 | 1847 | local rechargeData = csvdb["shop_rechargeCsv"][rechargeId] |
1847 | - if rechargeData.rmb ~= tonumber(params.amount) then | |
1848 | + if (params.is_mycard and rechargeData.twd ~= tonumber(params.amount)) or (not params.is_mycard and rechargeData.rmb ~= tonumber(params.amount)) then | |
1848 | 1849 | skynet.error(string.format("[recharge] fake order: %s, roleId: %d, order: %s, rmb %s, get %s", |
1849 | 1850 | params.transactionId, roleId, partnerOrderStr, rechargeData.rmb, params.amount |
1850 | 1851 | )) | ... | ... |