From be9ecc1971466d92555977b66216203358677099 Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Thu, 30 Apr 2020 17:57:05 +0800 Subject: [PATCH] 钻石只能买一次 --- src/actions/StoreAction.lua | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) 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