From e9c1df55fffea8d700688c720f449f820b35e953 Mon Sep 17 00:00:00 2001 From: liuzujun Date: Wed, 3 Nov 2021 15:58:48 +0800 Subject: [PATCH] 活动商品结束清购买记录 修改Email表content字段 --- src/models/Activity.lua | 5 +++-- src/services/dbseed.lua | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/models/Activity.lua b/src/models/Activity.lua index a117f81..264957b 100644 --- a/src/models/Activity.lua +++ b/src/models/Activity.lua @@ -1117,10 +1117,11 @@ end activityFunc[Activity.ActivityType.ActShopGoods] = { ["init"] = function(self, actType, isCrossDay, notify, actId) end, - ["close"] = function(self, actType, notify) + ["close"] = function(self, actType, notify, actId) local rechargeRecord = self.owner.storeData:getProperty("payR") for id, cfg in pairs(csvdb["shop_rechargeCsv"]) do - if cfg.shop == 3 and cfg.type == ShopPackType.ActShopPack then + --if cfg.shop == 3 and cfg.type == ShopPackType.ActShopPack then + if cfg.activity_id == actId then rechargeRecord[id] = nil end end diff --git a/src/services/dbseed.lua b/src/services/dbseed.lua index 354aace..1926409 100644 --- a/src/services/dbseed.lua +++ b/src/services/dbseed.lua @@ -268,7 +268,7 @@ local function doUpdateSql() "ALTER TABLE `Rune` MODIFY COLUMN `refer` bigint;" }, [3] = { - "ALTER TABLE `Email` MODIFY COLUMN `refer` VARCHAR(2048);" + "ALTER TABLE `Email` MODIFY COLUMN `content` VARCHAR(2048);" }, } -- 更新记录表 -- libgit2 0.21.2