diff --git a/src/actions/StoreAction.lua b/src/actions/StoreAction.lua index b80359a..8256564 100644 --- a/src/actions/StoreAction.lua +++ b/src/actions/StoreAction.lua @@ -14,6 +14,8 @@ function _M.rechargeRpc(agent , data) diamondCount = diamondCount + dataSet.diamondFirst rechargeF[id] = 1 role:updateProperty({field = "rechargeF", value = rechargeF}) + else + return --钻石只能买一次 end role:gainDiamond({count = diamondCount, isRecharge = true, log = {desc = "recharge", int1 = id}}) elseif dataSet.type == 1 then --月卡 -- libgit2 0.21.2