This commit is contained in:
vipg
2025-12-19 16:55:22 +08:00
parent 054445e1ca
commit 2e9526edb2

View File

@@ -135,10 +135,9 @@ func CreateHandler(c *gin.Context) {
var recordID string
err = tx.QueryRow(
`INSERT INTO trading_records (event_type, payload)
VALUES ($1, $2)
VALUES ('交易中', $1)
RETURNING id`,
req.EventType,
payloadBytes,
payloadBytes, // 只剩一个占位符
).Scan(&recordID)
if err != nil {
tx.Rollback()