diff --git a/server/backtask/task/gold_bullion_return.go b/server/backtask/task/gold_bullion_return.go index c591bb90..cc98a686 100644 --- a/server/backtask/task/gold_bullion_return.go +++ b/server/backtask/task/gold_bullion_return.go @@ -3,7 +3,6 @@ package task import ( "q5" "f5" - "time" "mt" "jccommon" "fmt" @@ -40,11 +39,11 @@ SELECT * FROM t_gold_bullion WHERE idx > %d AND activated = 0 AND returned = 0 A }, []string{ }, - func () time.Duration { - return time.Second * 10 + func () int64 { + return 10 }, - func () time.Duration { - return time.Second * 60 * 5 + func () int64 { + return 60 * 5 }, this.returnGold) } diff --git a/server/backtask/task/repair_nft.go b/server/backtask/task/repair_nft.go index 4f3a136d..ea94b34e 100644 --- a/server/backtask/task/repair_nft.go +++ b/server/backtask/task/repair_nft.go @@ -3,7 +3,6 @@ package task import ( "q5" "f5" - "time" "fmt" "jccommon" "main/constant" @@ -40,11 +39,11 @@ SELECT * FROM t_nft WHERE idx > %d AND item_id = 0 LIMIT 1000`, }, []string{ }, - func () time.Duration { - return time.Second * 10 + func () int64 { + return 10 }, - func () time.Duration { - return time.Second * 60 * 5 + func () int64 { + return 60 * 5 }, this.repairNft) } @@ -65,11 +64,11 @@ SELECT * FROM t_order WHERE idx > %d AND item_id = 0 LIMIT 1000`, }, []string{ }, - func () time.Duration { - return time.Second * 10 + func () int64 { + return 10 }, - func () time.Duration { - return time.Second * 60 * 5 + func () int64 { + return 60 * 5 }, this.repairOrder) } @@ -90,11 +89,11 @@ SELECT * FROM t_sale WHERE idx > %d AND item_id = 0 LIMIT 1000`, }, []string{ }, - func () time.Duration { - return time.Second * 10 + func () int64 { + return 10 }, - func () time.Duration { - return time.Second * 60 * 5 + func () int64 { + return 60 * 5 }, this.repairSale) } diff --git a/server/backtask/task/repair_order.go b/server/backtask/task/repair_order.go index 1e4e737b..742ccce2 100644 --- a/server/backtask/task/repair_order.go +++ b/server/backtask/task/repair_order.go @@ -3,7 +3,6 @@ package task import ( "q5" "f5" - "time" "fmt" "jccommon" "main/constant" @@ -39,11 +38,11 @@ SELECT * FROM t_order WHERE idx > %d AND status = ? LIMIT 100`, []string{ jccommon.ORDER_STATUS_ACTIVE, }, - func () time.Duration { - return time.Second * 3 + func () int64 { + return 3 }, - func () time.Duration { - return time.Second * 30 + func () int64 { + return 30 }, this.repairPrice) } diff --git a/server/backtask/task/spec_transfer721/spec_transfer721.go b/server/backtask/task/spec_transfer721/spec_transfer721.go index 46b0a771..4b07c503 100644 --- a/server/backtask/task/spec_transfer721/spec_transfer721.go +++ b/server/backtask/task/spec_transfer721/spec_transfer721.go @@ -3,7 +3,6 @@ package spec_transfer721 import ( "q5" "f5" - "time" "fmt" "mt" "jccommon" @@ -44,11 +43,11 @@ SELECT * FROM t_721nft_spec_transfer WHERE idx > %d AND status = 0 AND createtim }, []string{ }, - func () time.Duration { - return time.Second * 10 + func () int64{ + return 10 }, - func () time.Duration { - return time.Second * 60 * 1 + func () int64 { + return 60 * 1 }, this.dispatch) }