|
@@ -38,6 +38,7 @@ func DailySettlementBlockStarChain(engine *xorm.Engine, mid string) (err error) |
|
|
session.Begin() |
|
|
session.Begin() |
|
|
now := time.Now() |
|
|
now := time.Now() |
|
|
today := now.Format("2006-01-02") |
|
|
today := now.Format("2006-01-02") |
|
|
|
|
|
|
|
|
fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>", now.Hour()) |
|
|
fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>", now.Hour()) |
|
|
if now.Hour() > 8 || now.Hour() < 1 { |
|
|
if now.Hour() > 8 || now.Hour() < 1 { |
|
|
//TODO::只在凌晨一点 ~ 凌晨 8 点运行 |
|
|
//TODO::只在凌晨一点 ~ 凌晨 8 点运行 |
|
@@ -188,6 +189,7 @@ func DailySettlementBlockStarChain(engine *xorm.Engine, mid string) (err error) |
|
|
_ = session.Rollback() |
|
|
_ = session.Rollback() |
|
|
return errors.New("事务提交失败") |
|
|
return errors.New("事务提交失败") |
|
|
} |
|
|
} |
|
|
|
|
|
fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>区块星链结束<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<") |
|
|
return nil |
|
|
return nil |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|