Commit d81f1a3dc9b9936b266b2bca29f7ea750b145677
1 parent
7d5e688f
ios支付修改
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
src/actions/StoreAction.lua
| @@ -309,6 +309,7 @@ function _M.getCpOrderIdRpc(agent, data) | @@ -309,6 +309,7 @@ function _M.getCpOrderIdRpc(agent, data) | ||
| 309 | end | 309 | end |
| 310 | 310 | ||
| 311 | SendPacket(actionCodes.Store_getCpOrderIdRpc, MsgPack.pack(result)) | 311 | SendPacket(actionCodes.Store_getCpOrderIdRpc, MsgPack.pack(result)) |
| 312 | + return true | ||
| 312 | end | 313 | end |
| 313 | 314 | ||
| 314 | 315 |
src/models/RolePlugin.lua
| @@ -2429,7 +2429,7 @@ function RolePlugin.bind(Role) | @@ -2429,7 +2429,7 @@ function RolePlugin.bind(Role) | ||
| 2429 | end | 2429 | end |
| 2430 | local rechargeId = back | 2430 | local rechargeId = back |
| 2431 | local rechargeData = csvdb["shop_rechargeCsv"][rechargeId] | 2431 | local rechargeData = csvdb["shop_rechargeCsv"][rechargeId] |
| 2432 | - if params.amount == 0 then | 2432 | + if tonumber(params.amount) == 0 then |
| 2433 | if params.product_id ~= rechargeData.iap_product_id then | 2433 | if params.product_id ~= rechargeData.iap_product_id then |
| 2434 | skynet.error(string.format("[recharge] fake order: %s, roleId: %d, order: %s, rmb %s, get %s", | 2434 | skynet.error(string.format("[recharge] fake order: %s, roleId: %d, order: %s, rmb %s, get %s", |
| 2435 | params.transactionId, roleId, partnerOrderStr, rechargeData.iap_product_id, params.product_id | 2435 | params.transactionId, roleId, partnerOrderStr, rechargeData.iap_product_id, params.product_id |