feat: 优化充值订单号

This commit is contained in:
CalciumIon committed 2024-08-03 01:28:18 +08:00
1 parent fda2fd2e53
commit 0c0d6b4b0f
2 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -101,8 +101,8 @@ func RequestEpay(c *gin.Context) {
}
uri, params, err := client.Purchase(&epay.PurchaseArgs{
Type: payType,
ServiceTradeNo: "A" + tradeNo,
Name: "B" + tradeNo,
ServiceTradeNo: fmt.Sprintf("USR%d-%s", id, tradeNo),
Name: fmt.Sprintf("TUC%d", req.Amount),
Money: strconv.FormatFloat(payMoney, 'f', 2, 64),
Device: epay.PC,
NotifyUrl: notifyUrl,