修复拉卡拉支付时间偏差

This commit is contained in:
yml2213
2026-06-07 20:42:57 +08:00
parent 44747e7bae
commit 954c3d6be3
10 changed files with 169 additions and 5 deletions
+2 -1
View File
@@ -14,6 +14,7 @@ import (
"hfb_sys/backend/internal/modules/chat"
"hfb_sys/backend/internal/modules/notification"
"hfb_sys/backend/internal/modules/wallet"
"hfb_sys/backend/internal/timeutil"
"hfb_sys/backend/pkg/money"
"gorm.io/datatypes"
@@ -1627,7 +1628,7 @@ func makeAccountSnapshot(account model.GameAccount) (datatypes.JSON, error) {
func newOrderNo() (string, error) {
// 生成格式:RO + YYYYMMDDHHMMSS + 3位随机数
// 例如:RO20260603123456789
now := time.Now()
now := timeutil.ShanghaiNow()
// 时间部分:年月日时分秒 (14位)
timeStr := now.Format("20060102150405")