Commit Graph

30 Commits

Author SHA1 Message Date
CaIon
11c3bff1e2 fix: update payment method handling in topup controller
- Refactored payment method validation to check against available methods.
- Changed payment method types from "zfb" to "alipay" and "wx" to "wxpay" for consistency.
- Updated the purchase request to use the validated payment method directly.
2025-06-20 17:48:55 +08:00
Apple\Apple
1d28968193 🔧 fix: Update payment callback return URL path from /log to /console/log
- Modified returnUrl configuration in RequestEpay function
- Changed payment success redirect path to match updated frontend routing
- Updated controller/topup.go line 116 to use correct callback path
2025-06-10 20:41:43 +08:00
1808837298@qq.com
a92d9b12f8 refactor: Update topup amount type from int to int64 for improved precision 2025-03-08 21:59:18 +08:00
1808837298@qq.com
0876bc3f7f feat: Improve decimal precision for quota and payment calculations
- Added github.com/shopspring/decimal for precise floating-point calculations
- Refactored quota and payment calculations in multiple files to use decimal arithmetic
- Updated go.mod and go.sum to include decimal library
- Improved precision in topup, relay, and quota service calculations
- Added support for more OpenAI model variants in cache ratio settings
2025-03-08 21:55:50 +08:00
1808837298@qq.com
d04d78a116 refactor: Enhance user context and quota management
- Add new context keys for user-related information
- Modify user cache and authentication middleware to populate context
- Refactor quota and notification services to use context-based user data
- Remove redundant database queries by leveraging context information
- Update various components to use new context-based user retrieval methods
2025-02-25 20:56:16 +08:00
CalciumIon
966cdc1f7f refactor: user cache logic 2024-12-29 16:50:26 +08:00
CalciumIon
69c590d439 feat: Introduce settings package and refactor constants
- Added a new `setting` package to replace the `constant` package for configuration management, improving code organization and clarity.
- Moved various configuration variables such as `ServerAddress`, `PayAddress`, and `SensitiveWords` to the new `setting` package.
- Updated references throughout the codebase to use the new `setting` package, ensuring consistent access to configuration values.
- Introduced new files for managing chat settings and midjourney settings, enhancing modularity and maintainability of the code.
2024-12-22 17:24:29 +08:00
CalciumIon
498b240409 feat: update go-epay 2024-12-05 17:45:54 +08:00
CalciumIon
20baae4704 chore: epay 2024-08-04 03:12:24 +08:00
CalciumIon
95d2f80ef3 fix: epay 2024-08-04 00:18:32 +08:00
CalciumIon
0c0d6b4b0f feat: 优化充值订单号 2024-08-03 01:28:18 +08:00
CalciumIon
eca52104cc chore: 重构 2024-06-27 19:30:17 +08:00
1808837298@qq.com
893dafb89f feat: 支持设置worker访问请求中的图片地址 2024-05-28 17:59:53 +08:00
CaIon
d0c04ce982 feat: 前端不显示敏感信息 2024-04-18 17:52:18 +08:00
CaIon
107bd8d691 update go-epay 2024-04-07 14:42:03 +08:00
CaIon
78b114541d feat: 钱包兼容非货币形式显示额度 2024-04-04 18:21:23 +08:00
CaIon
809684da60 feat: 钱包兼容非货币形式显示额度 2024-04-04 18:20:38 +08:00
CaIon
f5dd4ea293 feat: 钱包兼容非货币形式显示额度 2024-04-04 18:18:18 +08:00
CaIon
99183c6438 fix: 充值并发导致订单号相同 2024-03-21 23:57:48 +08:00
CaIon
3548a152c0 fix: 修复epay可能重复回调的问题 2024-03-14 18:33:35 +08:00
1808837298@qq.com
53d25cc62b feat: 可自定义支付回调地址及最低购买数量 2024-03-02 22:07:32 +08:00
CaIon
f13cc54db7 修复日志充值显示问题 2023-12-10 18:49:17 +08:00
CaIon
3d56752344 充值改为保留两位小数 2023-12-09 22:56:24 +08:00
CaIon
7e5ad052ba fix epay bug 2023-11-24 14:00:29 +08:00
CaIon
abb82a0b11 feat: 新增充值分组倍率设置 2023-10-11 14:58:09 +08:00
CaIon
e8895c92a8 修复充值bug 2023-09-09 05:05:46 +08:00
CaIon
ff8df45f95 修复充值bug 2023-09-09 05:04:49 +08:00
CaIon
f73ecc57c2 移除不必要的功能 2023-09-09 03:11:42 +08:00
CaIon
c7d1cef7b4 修改stat接口返回值 2023-08-25 00:40:11 +08:00
CaIon
68b24da6a6 add epay 2023-08-14 22:16:32 +08:00