From b4d328bee86caecaa6b48c9aaf7ee9fbba18936a Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Wed, 16 Nov 2022 11:12:41 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E7=BB=BF=E8=89=B2=E7=A7=AF=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rule/block_green_chain_settlement.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rule/block_green_chain_settlement.go b/rule/block_green_chain_settlement.go index 2ed2a2f..81a2046 100644 --- a/rule/block_green_chain_settlement.go +++ b/rule/block_green_chain_settlement.go @@ -320,6 +320,7 @@ func statisticsAndDistributeCoinForAirdrop(session *xorm.Session, mid string, pu } if totalUser > 0 { now := time.Now() + tday := now.Format("2006-01-02") for _, item := range userList { var singleValue = decimal.NewFromFloat(0) @@ -353,6 +354,12 @@ func statisticsAndDistributeCoinForAirdrop(session *xorm.Session, mid string, pu if err != nil { return err, unassignedTotalCoinValue } + //TODO::更新 airdrop_date(空投日期) + item.AirdropDate = tday + _, err := db.BlockGreenChainCustomUserAirdropUpdate(session, item.Id, item) + if err != nil { + return err, unassignedTotalCoinValue + } } } }