diff --git a/backend/internal/modules/order/handler.go b/backend/internal/modules/order/handler.go index f64d2fb..171b7d6 100644 --- a/backend/internal/modules/order/handler.go +++ b/backend/internal/modules/order/handler.go @@ -375,6 +375,7 @@ func parseID(c *gin.Context) (uint64, bool) { } func writeOrderError(c *gin.Context, err error) { + println("DEBUG ORDER ERROR:", err.Error()) switch { case errors.Is(err, ErrDependencyUnavailable): response.ServiceUnavailable(c, "数据库未连接") diff --git a/backend/internal/modules/wallet/repository.go b/backend/internal/modules/wallet/repository.go index 4ce8eba..ca3c3bd 100644 --- a/backend/internal/modules/wallet/repository.go +++ b/backend/internal/modules/wallet/repository.go @@ -171,6 +171,7 @@ func ensureAccount(tx *gorm.DB, userID uint64) error { } func applyEntry(account *model.WalletAccount, entry Entry) (float64, error) { + println("DEBUG APPLY:", entry.UserID, "type:", entry.BalanceType, "dir:", entry.Direction, "amt:", fmt.Sprintf("%.2f", entry.Amount), "avail:", fmt.Sprintf("%.2f", account.AvailableBalance), "frozen:", fmt.Sprintf("%.2f", account.FrozenBalance)) entry.Amount = roundWalletMoney(entry.Amount) account.AvailableBalance = roundWalletMoney(account.AvailableBalance) account.FrozenBalance = roundWalletMoney(account.FrozenBalance) diff --git a/frontend/components.d.ts b/frontend/components.d.ts index 7380d7f..ff84c15 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -44,6 +44,7 @@ declare module 'vue' { VanEmpty: typeof import('vant/es')['Empty'] VanField: typeof import('vant/es')['Field'] VanIcon: typeof import('vant/es')['Icon'] + VanList: typeof import('vant/es')['List'] VanLoading: typeof import('vant/es')['Loading'] VanNoticeBar: typeof import('vant/es')['NoticeBar'] VanPopup: typeof import('vant/es')['Popup'] diff --git a/frontend/src/views/mobile/MobileMessagesView.vue b/frontend/src/views/mobile/MobileMessagesView.vue index 73caf8f..2d591e1 100644 --- a/frontend/src/views/mobile/MobileMessagesView.vue +++ b/frontend/src/views/mobile/MobileMessagesView.vue @@ -1,22 +1,184 @@