瀏覽代碼

add 区块星链

tags/v2.2.6
DengBiao 2 年之前
父節點
當前提交
b1d458c10f
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. +4
    -4
      rule/block_star_chain_settlement.go

+ 4
- 4
rule/block_star_chain_settlement.go 查看文件

@@ -39,10 +39,10 @@ func DailySettlementBlockStarChain(engine *xorm.Engine, mid string) (err error)
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 {
// //TODO::只在凌晨一点 ~ 凌晨 8 点运行
// return errors.New("非运行时间")
//}
if now.Hour() > 8 || now.Hour() < 1 {
//TODO::只在凌晨一点 ~ 凌晨 8 点运行
return errors.New("非运行时间")
}
//1、查找 `block_star_chain` 基础设置 //1、查找 `block_star_chain` 基础设置
blockStarChain, err := db.BlockStarChainGetOneByParams(session, map[string]interface{}{ blockStarChain, err := db.BlockStarChainGetOneByParams(session, map[string]interface{}{
"key": "is_use", "key": "is_use",


Loading…
取消
儲存