This commit is contained in:
@@ -320,7 +320,7 @@ func (ctl *posts) Buy(ctx fiber.Ctx, post *models.Post, user *models.User) (*wec
|
||||
}
|
||||
// payPrice := post.PayPrice()
|
||||
|
||||
order, err := services.Orders.CreateFromUserPostID(ctx, user.ID, post.ID)
|
||||
order, err := services.Orders.CreateFromUserPostID(ctx, user.ID, post)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "订单创建失败")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user