This commit is contained in:
aozhiwei 2024-06-29 21:37:14 +08:00
parent d568b903a4
commit 6419227083
5 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -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))

View File

@ -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)
}

View File

@ -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))
},

2
third_party/f5 vendored

@ -1 +1 @@
Subproject commit 2ff2d1c71b4614799ae6d08493d140adb17cf86d
Subproject commit 94bdf86097e8cf87afb6c2586c1a9cf33dca6210