From d81f1a3dc9b9936b266b2bca29f7ea750b145677 Mon Sep 17 00:00:00 2001 From: liuzujun Date: Fri, 12 Nov 2021 17:30:14 +0800 Subject: [PATCH] ios支付修改 --- src/actions/StoreAction.lua | 1 + src/models/RolePlugin.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/actions/StoreAction.lua b/src/actions/StoreAction.lua index d7e8944..3102beb 100644 --- a/src/actions/StoreAction.lua +++ b/src/actions/StoreAction.lua @@ -309,6 +309,7 @@ function _M.getCpOrderIdRpc(agent, data) end SendPacket(actionCodes.Store_getCpOrderIdRpc, MsgPack.pack(result)) + return true end diff --git a/src/models/RolePlugin.lua b/src/models/RolePlugin.lua index f104288..f04ac91 100644 --- a/src/models/RolePlugin.lua +++ b/src/models/RolePlugin.lua @@ -2429,7 +2429,7 @@ function RolePlugin.bind(Role) end local rechargeId = back local rechargeData = csvdb["shop_rechargeCsv"][rechargeId] - if params.amount == 0 then + if tonumber(params.amount) == 0 then if params.product_id ~= rechargeData.iap_product_id then skynet.error(string.format("[recharge] fake order: %s, roleId: %d, order: %s, rmb %s, get %s", params.transactionId, roleId, partnerOrderStr, rechargeData.iap_product_id, params.product_id -- libgit2 0.21.2