From da106673c88f89a5f8085a8af4493ac53d9be5e0 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 10 Jul 2024 15:26:31 +0800 Subject: [PATCH] 1 --- server/backtask/service/spec_transfer.go | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/server/backtask/service/spec_transfer.go b/server/backtask/service/spec_transfer.go index 33faa08d..4b725f5f 100644 --- a/server/backtask/service/spec_transfer.go +++ b/server/backtask/service/spec_transfer.go @@ -112,9 +112,15 @@ func ReturnGoldBullion(accountId string, netId int32, tokenId string) bool { } { + goldNumStr := q5.ToString(goldNum) + if goldNum == 1000 { + goldNumStr = "1,000" + } else if goldNum == 10000 { + goldNumStr = "10,000" + } nowTime := f5.GetApp().GetRealSeconds() subject := "gold return" - content := fmt.Sprintf("We regret to inform you that the minting of your Gold Card has failed. The %s gold has been refunded to your account. Please check your balance to confirm the refund.", goldNum) + content := fmt.Sprintf("We regret to inform you that the minting of your Gold Card has failed. The %s gold has been refunded to your account. Please check your balance to confirm the refund.", goldNumStr) uniKey := fmt.Sprintf("gold_bullion.return:%d_%s", netId, tokenId) sendOk := SendSysMail( uniKey, @@ -126,7 +132,7 @@ func ReturnGoldBullion(accountId string, netId int32, tokenId string) bool { jccommon.MAIL_TAG1_GOLD_BULLION, jccommon.MAIL_TAG2_GOLD_BULLION_RETURN) if !sendOk { - return true + return false } } @@ -153,7 +159,7 @@ func ReturnGoldBullion(accountId string, netId int32, tokenId string) bool { return false } if returned { - return true + return false } } { @@ -183,7 +189,6 @@ func ReturnGoldBullion(accountId string, netId int32, tokenId string) bool { } } - return true { var dbErr error nowTime := f5.GetApp().GetRealSeconds()