diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index 494bad9..0fe6933 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -1730,6 +1730,11 @@ function _M.itemConvertSpecialRpc(agent, data) if not role:checkItemEnough({[itemId] = 1}) then return 3 end local reward = {} + + if not role.storeData:checkRechargeRecord(rechargeData.limit, exchangeId)then + return 5 + end + if rechargeData.type == CardType.ActBattleCommandCard then if role.activity:isOpenById(rechargeData.activity_id, "ActShopGoods") then local tmpreward, _ = role.storeData:onBuyCard(rechargeData.type, rechargeData.time, rechargeData.id, rechargeData.activity_id) diff --git a/src/models/RolePlugin.lua b/src/models/RolePlugin.lua index fd2c613..5466587 100644 --- a/src/models/RolePlugin.lua +++ b/src/models/RolePlugin.lua @@ -2435,7 +2435,7 @@ function RolePlugin.bind(Role) return 1 end - if not self.storeData:checkRechargeRecord(rechargeData.limit, id) and rechargeData.shop ~= 2 then + if not self.storeData:checkRechargeRecord(rechargeData.limit, id)then return 2 end -- libgit2 0.21.2