gitxsm 1 bulan lalu
induk
melakukan
d508a9a443

+ 3 - 0
script/module/present/MonthCard.lua

@@ -15,6 +15,8 @@ local TreasureChestLogic = require("treasurechest.TreasureChestLogic")
 local Log = require("common.Log")
 local CommonDefine = require("common.CommonDefine")
 local ShopLogic = require("shop.ShopLogic")
+local UnionLogic = require("union.UnionLogic")
+
 
 local MONTH_CARD_STATE_0 = 0        -- 已过期
 local MONTH_CARD_STATE_1 = 1        -- 未过期
@@ -244,6 +246,7 @@ function buyMonthCard(human,id)
     if MONTH_CARD_FOREVER == id then
         TreasureChestLogic.TreasureChestLogic_BuyOpenAuto(human)
         ShopLogic.GetBuyLiftTimeCard(human)
+        UnionLogic.ActivateForeverCard(human)
     end
 end
 

+ 5 - 0
script/module/union/UnionLogic.lua

@@ -1518,4 +1518,9 @@ function UpdateJoinAbTime(unionId, newTime)
 
     union.joinAnotherWorldBattleTi = newTime
     UnionDBLogic.updateUnionData(union)
+end
+
+-- 激活永久月卡
+function ActivateForeverCard(human)
+    CreateUnionChargeCondQuery(human)
 end