diff --git a/rule/block_star_chain_settlement.go b/rule/block_star_chain_settlement.go index 8b8a105..bd3a44c 100644 --- a/rule/block_star_chain_settlement.go +++ b/rule/block_star_chain_settlement.go @@ -54,6 +54,11 @@ func DailySettlementBlockStarChain(engine *xorm.Engine, mid string, isTask bool) _ = session.Rollback() return err } + if blockStarChain.StartAt == "" || blockStarChain.StartAt == "0000-00-00" { + _ = session.Rollback() + return errors.New("区块星链空投暂未开启") + } + if blockStarChain.SettlementDate == today { _ = session.Rollback() return errors.New("今日“区块星链”已结算")