This commit is contained in:
aozhiwei 2024-07-10 11:48:27 +08:00
parent 56f9b38991
commit 83e792e663
2 changed files with 4 additions and 3 deletions

View File

@ -78,7 +78,7 @@ func OpenGoldBullion(accountId string, accountAddress string, netId int32, token
"t_gold_bullion",
[][]string {
{"token_id", tokenId},
{"status", q5.ToString(jccommon.GOLD_BULLION_OPEN_STATUS_SENT)},
{"status", q5.ToString(jccommon.GOLD_BULLION_OPENED)},
},
[][]string {
{"open_status", q5.ToString(jccommon.GOLD_BULLION_OPEN_STATUS_RECEIVED)},

View File

@ -31,9 +31,10 @@ func (this* goldBullionReturn) loadExpiredGoldBullion() {
},
func (lastIdx int64) string {
nowTime := f5.GetApp().GetRealSeconds()
expiredTime := nowTime - 3600 * 24 - 60 * 5
expiredTime := nowTime - 3600 * 24 - 60 * 10
sql := fmt.Sprintf(`
SELECT * FROM t_gold_bullion WHERE idx > %d AND activated = 0 AND returned = 0 AND createtime < %d LIMIT 1000`,
SELECT * FROM t_gold_bullion
WHERE idx > %d AND activated = 0 AND returned = 0 AND createtime < %d LIMIT 100`,
lastIdx,
expiredTime)
return sql