Browse Source

add 区块星链

tags/v2.2.5
DengBiao 2 years ago
parent
commit
bbb4427b9d
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      rule/block_star_chain_settlement.go

+ 3
- 3
rule/block_star_chain_settlement.go View File

@@ -74,7 +74,7 @@ func DailySettlementBlockStarChain(engine *xorm.Engine, mid string) (err error)
} }


//3、进行系统区块币发放 //3、进行系统区块币发放
err = dealIssueCoin(session, int(enum.SystemDestroy), publishCoin, enum.SystemTimingIssue.String(), blockStarChain)
err = dealIssueCoin(session, int(enum.SystemTimingIssue), publishCoin, enum.SystemTimingIssue.String(), blockStarChain)
if err != nil { if err != nil {
_ = session.Rollback() _ = session.Rollback()
return err return err
@@ -137,7 +137,7 @@ func DailySettlementBlockStarChain(engine *xorm.Engine, mid string) (err error)
TodayDestroyCoinForOperationCenter: zhios_order_relate_utils.Float64ToStr(destroyCoinForOperationCenter), TodayDestroyCoinForOperationCenter: zhios_order_relate_utils.Float64ToStr(destroyCoinForOperationCenter),
TodayPublishCoinForOther: zhios_order_relate_utils.Float64ToStr(otherCoinNums), TodayPublishCoinForOther: zhios_order_relate_utils.Float64ToStr(otherCoinNums),
TodayDestroyCoinForOther: zhios_order_relate_utils.Float64ToStr(destroyCoinForOther), TodayDestroyCoinForOther: zhios_order_relate_utils.Float64ToStr(destroyCoinForOther),
Date: now.Format("2006-01"),
Date: now.Format("2006-01-02"),
CreateAt: now, CreateAt: now,
UpdateAt: now, UpdateAt: now,
} }
@@ -170,7 +170,7 @@ func DailySettlementBlockStarChain(engine *xorm.Engine, mid string) (err error)
var blockCoinPlatformGuidePriceForCoinRecords = model.BlockCoinPlatformGuidePriceForCoinRecords{ var blockCoinPlatformGuidePriceForCoinRecords = model.BlockCoinPlatformGuidePriceForCoinRecords{
CoinId: blockStarChain.Coin1, CoinId: blockStarChain.Coin1,
PlatformGuidePriceForCoin: blockStarChain.PlatformGuidePriceForCoin, PlatformGuidePriceForCoin: blockStarChain.PlatformGuidePriceForCoin,
Date: now.AddDate(0, 0, -1).Format("2006-01"),
Date: now.AddDate(0, 0, -1).Format("2006-01-02"),
CreateAt: now, CreateAt: now,
UpdateAt: now, UpdateAt: now,
} }


Loading…
Cancel
Save