fix: BepUsdt签名amount改用fmt.Sprint与请求体float64序列化一致

This commit is contained in:
2026-05-28 00:26:17 +08:00
parent cd24e88f60
commit 8319b4b7ed
+1 -1
View File
@@ -78,7 +78,7 @@ func (h *PaymentHandler) CreatePayment(c *gin.Context) {
params := map[string]string{
"order_id": strconv.Itoa(int(order.ID)),
"amount": fmt.Sprintf("%.2f", order.TotalAmount),
"amount": fmt.Sprint(order.TotalAmount),
"notify_url": notifyURL,
"redirect_url": redirectURL,
}