fix: amount
This commit is contained in:
@@ -269,7 +269,8 @@ func (ctl *posts) Buy(ctx fiber.Ctx, id int64, user *model.Users) (*wechat.JSAPI
|
||||
Expire(30 * time.Minute).
|
||||
Description(post.Title).
|
||||
OutTradeNo(order.OrderNo).
|
||||
Payer(user.OpenID)
|
||||
Payer(user.OpenID).
|
||||
CNYAmount(post.Price * int64(post.Discount) / 100)
|
||||
})
|
||||
if err != nil {
|
||||
log.Errorf("wepay.V3TransactionJsapi err: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user