Browse Source

update

master
DengBiao 10 months ago
parent
commit
51a217be75
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      rule/one_circles/one_circles_public_platoon_user_relation_commission.go

+ 1
- 1
rule/one_circles/one_circles_public_platoon_user_relation_commission.go View File

@@ -812,7 +812,7 @@ const OneCirclesDealUserPublicPlatoonPunishLockKey = "one_circles_deal_user_publ
func OneCirclesDealUserPublicPlatoonPunish(engine *xorm.Engine, masterId string) (err error) { func OneCirclesDealUserPublicPlatoonPunish(engine *xorm.Engine, masterId string) (err error) {
now := time.Now() now := time.Now()
fmt.Println(now.Hour()) fmt.Println(now.Hour())
if !(now.Hour() > 3 && now.Hour() < 8) {
if !(now.Hour() > 22 && now.Hour() < 24) {
//TODO::只在凌晨一点 ~ 凌晨 8 点运行 //TODO::只在凌晨一点 ~ 凌晨 8 点运行
return errors.New("非运行时间") return errors.New("非运行时间")
} }


Loading…
Cancel
Save