From 6419227083d1b4035e70c376923a98eb6d324b6d Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 29 Jun 2024 21:37:14 +0800 Subject: [PATCH] 1 --- server/backtask/task/gold_bullion_return.go | 1 + server/backtask/task/repair_nft.go | 3 +++ server/backtask/task/repair_order.go | 5 +++-- server/backtask/task/spec_transfer721/spec_transfer721.go | 1 + third_party/f5 | 2 +- 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/server/backtask/task/gold_bullion_return.go b/server/backtask/task/gold_bullion_return.go index cc98a686..85898f81 100644 --- a/server/backtask/task/gold_bullion_return.go +++ b/server/backtask/task/gold_bullion_return.go @@ -24,6 +24,7 @@ func (this* goldBullionReturn) unInit() { func (this* goldBullionReturn) loadExpiredGoldBullion() { f5.GetGoStyleDb().LoopLoad( constant.GAME_DB, + "goldBullionReturn", "t_gold_bullion", func () int64 { return 60 * 5 diff --git a/server/backtask/task/repair_nft.go b/server/backtask/task/repair_nft.go index ea94b34e..edcaeaf7 100644 --- a/server/backtask/task/repair_nft.go +++ b/server/backtask/task/repair_nft.go @@ -26,6 +26,7 @@ func (this* repairNft) unInit() { func (this* repairNft) processNft() { f5.GetGoStyleDb().LoopLoad( constant.BCNFT_DB, + "repairNft.nft", "t_nft", func () int64 { return 60 * 1 @@ -51,6 +52,7 @@ SELECT * FROM t_nft WHERE idx > %d AND item_id = 0 LIMIT 1000`, func (this* repairNft) processOrder() { f5.GetGoStyleDb().LoopLoad( constant.BCNFT_DB, + "repairNft.order", "t_order", func () int64 { return 60 + q5.ToInt64(rand.Intn(2)) @@ -76,6 +78,7 @@ SELECT * FROM t_order WHERE idx > %d AND item_id = 0 LIMIT 1000`, func (this* repairNft) processSale() { f5.GetGoStyleDb().LoopLoad( constant.BCNFT_DB, + "repairNft.sale", "t_sale", func () int64 { return 60 + q5.ToInt64(rand.Intn(2)) diff --git a/server/backtask/task/repair_order.go b/server/backtask/task/repair_order.go index 742ccce2..e2789224 100644 --- a/server/backtask/task/repair_order.go +++ b/server/backtask/task/repair_order.go @@ -24,9 +24,10 @@ func (this* repairOrder) unInit() { func (this* repairOrder) process() { f5.GetGoStyleDb().LoopLoad( constant.BCNFT_DB, + "repairOrder", "t_order", func () int64 { - return 60 + q5.ToInt64(rand.Intn(2)) + return 60 + q5.ToInt64(rand.Intn(3)) }, func (lastIdx int64) string { sql := fmt.Sprintf(` @@ -42,7 +43,7 @@ SELECT * FROM t_order WHERE idx > %d AND status = ? LIMIT 100`, return 3 }, func () int64 { - return 30 + return 60 + q5.ToInt64(rand.Intn(3)) }, this.repairPrice) } diff --git a/server/backtask/task/spec_transfer721/spec_transfer721.go b/server/backtask/task/spec_transfer721/spec_transfer721.go index 4b07c503..cf56fd51 100644 --- a/server/backtask/task/spec_transfer721/spec_transfer721.go +++ b/server/backtask/task/spec_transfer721/spec_transfer721.go @@ -28,6 +28,7 @@ func (this* SpecTransfer721) process() { f5.GetGoStyleDb().LoopLoad( constant.BCEVENT_DB, "t_721nft_spec_transfer", + "t_721nft_spec_transfer", func () int64 { return 3 + q5.ToInt64(rand.Intn(2)) }, diff --git a/third_party/f5 b/third_party/f5 index 2ff2d1c7..94bdf860 160000 --- a/third_party/f5 +++ b/third_party/f5 @@ -1 +1 @@ -Subproject commit 2ff2d1c71b4614799ae6d08493d140adb17cf86d +Subproject commit 94bdf86097e8cf87afb6c2586c1a9cf33dca6210