Browse Source

update 绿色积分

tags/v3.7.5
DengBiao 1 year ago
parent
commit
b4d328bee8
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      rule/block_green_chain_settlement.go

+ 7
- 0
rule/block_green_chain_settlement.go View File

@@ -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
}
}
}
}


Loading…
Cancel
Save