Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xyy0411 committed Dec 15, 2024
1 parent 4ff909d commit 72ce32b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions niu/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,11 +395,11 @@ func (db *model) setNiuNiuAuction(gid int64, u *AuctionInfo) error {
u.ID = uint(num)
err = db.sql.Insert(fmt.Sprintf("auction_%d", gid), u)
if err != nil {
err = db.sql.Create(strconv.FormatInt(gid, 10), &AuctionInfo{})
err = db.sql.Create(fmt.Sprintf("auction_%d", gid), &AuctionInfo{})
if err != nil {
return err
}
err = db.sql.Insert(strconv.FormatInt(gid, 10), u)
err = db.sql.Insert(fmt.Sprintf("auction_%d", gid), u)
}
return err
}
Expand Down

0 comments on commit 72ce32b

Please sign in to comment.