shanshanzhong147
2be25df7d2
feat: 提现优化 — 取消状态 + 收款方式 + TableName 修复 (HIF-42)
...
- P04: 修复 Withdrawal.TableName() 返回正确表名 withdrawals
- P03: 新增提现状态常量 (constant/withdrawal.go),消除魔法数字 0/1/2/3;
新增 CommissionTypeWithdrawCancel (338) 和 WithdrawalCancelForbidden 错误码
- P02: 迁移 02123 为 withdrawals 表添加 method/account/qr_code_url 列;
扩展 Withdrawal GORM 模型和 API 类型(CommissionWithdrawRequest、WithdrawalLog);
申请提现时增加收款方式校验逻辑
- P01: 新增用户取消提现接口 POST /v1/public/user/withdrawal_cancel;
仅可取消自己的待审核提现,退还佣金并写佣金日志
- P05: 管理端提现列表新增 method 过滤参数
Co-authored-by: multica-agent <github@multica.ai >
2026-05-25 20:39:45 -07:00
shanshanzhong147
fd522b6c71
path
Build docker and publish / build (20.15.1) (push) Successful in 8m56s
2026-05-19 19:35:44 -07:00
shanshanzhong147
54daa923da
补单逻辑
Build docker and publish / build (20.15.1) (push) Has been cancelled
2026-05-06 04:59:04 -07:00
shanshanzhong147
c8258dc93b
feat: 设备登录新增 base_payload 字段,前端传入后存储到 user_device 表
Build docker and publish / build (20.15.1) (push) Successful in 4m48s
2026-04-20 20:08:20 -07:00
shanshanzhong147
62cf68b49b
x
Build docker and publish / build (20.15.1) (push) Successful in 6m35s
2026-04-04 11:46:06 -07:00
shanshanzhong147
f703b5089a
分组概念
Build docker and publish / build (20.15.1) (push) Successful in 7m58s
2026-03-19 03:21:47 -07:00
shanshanzhong147
e5e9f93f68
Merge remote-tracking branch 'origin/master' into internal
2026-03-19 01:55:01 -07:00
shanshanzhong147
4b528184ea
devicd_no
Build docker and publish / build (20.15.1) (push) Successful in 7m58s
2026-03-17 08:37:36 -07:00
shanshanzhong147
3db14ae472
feat: 迁移订阅表字段,为用户认证方法添加软删除功能及索引,并调整 Docker Compose 中 MySQL 端口映射。
Build docker and publish / build (20.15.1) (push) Successful in 7m34s
2026-03-15 01:47:01 -07:00
EUForest
06a2425474
feat(subscribe): add traffic limit rules and user traffic stats
...
- Add subscribe traffic_limit schema and migration\n- Support traffic_limit in admin create/update and list/details\n- Apply traffic_limit when building server user list speed limits\n- Add public user traffic stats API
2026-03-14 12:41:52 +08:00
shanshanzhong147
b3c721ee58
fix: schema_compat 跳过不存在的表,避免 columnPatch 对缺失表 panic
...
Build docker and publish / build (20.15.1) (push) Successful in 7m33s
Co-Authored-By: claude-flow <ruv@ruv.net >
2026-03-11 11:33:21 -07:00
shanshanzhong147
4095552252
feat: 为订单表添加 IAP 相关字段并调整 IAP 对账逻辑参数。
Build docker and publish / build (20.15.1) (push) Successful in 7m34s
2026-03-10 21:12:39 -07:00
shanshanzhong147
7c2eddf9c3
feat: 为订单表添加 app_account_token 字段并增强 Apple IAP 对账逻辑,支持通过交易历史记录查找。
Build docker and publish / build (20.15.1) (push) Successful in 7m25s
2026-03-10 20:47:24 -07:00
EUForest
2fd22c97e0
feat(migration): add captcha configuration migration
...
- Add CaptchaType field for selecting captcha implementation
- Add EnableUserLoginCaptcha for user login verification
- Add EnableUserRegisterCaptcha for user registration verification
- Add EnableAdminLoginCaptcha for admin login verification
- Add EnableUserResetPasswordCaptcha for password reset verification
- Remove deprecated EnableLoginVerify, EnableRegisterVerify, EnableResetPasswordVerify fields
- Support rollback with down migration
2026-03-09 22:53:45 +08:00
shanshanzhong147
dcfcd036de
x
Build docker and publish / build (20.15.1) (push) Successful in 7m46s
2026-03-08 22:37:58 -07:00
shanshanzhong147
79a97ec569
限制套餐具体到 档位
Build docker and publish / build (20.15.1) (push) Successful in 7m45s
2026-03-08 21:25:07 -07:00
EUForest
39310d5b9a
Features:
...
- Node group CRUD operations with traffic-based filtering
- Three grouping modes: average distribution, subscription-based, and traffic-based
- Automatic and manual group recalculation with history tracking
- Group assignment preview before applying changes
- User subscription group locking to prevent automatic reassignment
- Subscribe-to-group mapping configuration
- Group calculation history and detailed reports
- System configuration for group management (enabled/mode/auto_create)
Database:
- Add node_group table for group definitions
- Add group_history and group_history_detail tables for tracking
- Add node_group_ids (JSON) to nodes and subscribe tables
- Add node_group_id and group_locked fields to user_subscribe table
- Add migration files for schema changes
2026-03-08 23:22:38 +08:00
shanshanzhong147
4907853667
邀请 N天配置
2026-03-08 07:31:11 -07:00
shanshanzhong147
4d913c1728
修复缓存
Build docker and publish / build (20.15.1) (push) Successful in 7m26s
2026-03-06 21:58:29 -08:00
shanshanzhong147
7308aa9191
无订阅 支付后出现两个订阅
Build docker and publish / build (20.15.1) (push) Failing after 7m37s
2026-03-05 21:53:36 -08:00
shanshanzhong147
2215df8c0b
各种配置项修复,优化到后台管理端配置
2026-03-04 19:42:21 -08:00
shanshanzhong147
6c370485d1
fix gitea workflow path and runner label
Build docker and publish / build (20.15.1) (push) Failing after 8m1s
2026-03-04 03:07:41 -08:00
shanshanzhong147
4d8516b2e1
同步历史版本代码
2026-03-03 09:32:22 -08:00
EUForest
31e75efacb
Merge upstream/master into master
2026-02-13 23:06:43 +08:00
EUForest
9ad602aabe
fix(migration): remove IF NOT EXISTS for MySQL compatibility
...
Remove IF NOT EXISTS clause from CREATE INDEX statement to ensure
compatibility with older MySQL versions. Migration framework ensures
each migration runs only once, making the clause unnecessary.
2026-02-10 00:45:17 +08:00
EUForest
bacdf2f301
fix(migration): correct SQL syntax for traffic_log index creation
...
Change ALTER TABLE ADD INDEX IF NOT EXISTS to CREATE INDEX IF NOT EXISTS
to comply with MySQL syntax requirements. The IF NOT EXISTS clause is
only supported with CREATE INDEX statement, not with ALTER TABLE ADD INDEX.
2026-02-10 00:25:40 +08:00
EUForest
2a1ae2e1cc
feat: add index on user.refer_code for faster invite code lookup
...
- Add idx_refer_code index to improve query performance
- Prevents full table scan when validating invite codes during registration
2026-01-10 20:37:24 +08:00
EUForest
3359704a45
feat: add short_code field to device login API
...
- Add optional short_code parameter to DeviceLoginRequest
- Add ShortCode field to Device model
- Save short_code to database during device registration
- Add database migration for user_device.short_code column
- Fix duplicate variable declaration in routes.go
2026-01-10 18:11:24 +08:00
Chang lue Tsen
7d84cf858b
fix(currency): initialize exchange rate to 0 and improve error logging in purchase checkout
2026-01-07 09:35:52 -05:00
EUForest
24c7fc8857
add: init sql
2026-01-06 16:16:42 +08:00
EUForest
518595b058
feat: Redemption Code
2026-01-05 17:53:31 +08:00
EUForest
80ee9a6acf
Merge upstream/master into develop
...
Sync upstream changes from perfect-panel/server
Includes updates from v1.0.1 to v1.2.5:
- Currency configuration support
- Subscribe improvements (short token, inventory check, etc.)
- Node management enhancements
- Database migrations
- Bug fixes and optimizations
2026-01-02 12:51:55 +08:00
Tension
798fb9e245
feat(currency): add currency configuration support and integrate into payment processing
2025-12-31 11:47:24 +08:00
Tension
577490749c
feat(subscribe): update inventory logic in subscribe table and add migration scripts
2025-12-29 13:29:12 +08:00
Tension
518294a528
feat(database): add migration to drop server_group table
2025-12-28 22:55:38 +08:00
Tension
d332e760f8
feat(subscribe): add ShowOriginalPrice field and related database changes
2025-12-28 17:08:26 +08:00
Chang lue Tsen
e027cbb5de
refactor(server): remove server table
2025-12-23 07:52:38 -05:00
EUForest
76ff9a658d
Merge branch perfect-panel/master/server into develop
2025-12-11 23:53:32 +08:00
Chang lue Tsen
7277438b07
feat(user): add commission withdrawal and query withdrawal log functionality
2025-11-26 12:13:33 -05:00
Chang lue Tsen
429e535dd4
feat(user): add endpoint and logic for updating user rules
2025-11-24 09:05:49 -05:00
Chang lue Tsen
2305562a7c
feat(server): implement gateway mode handling and dynamic port registration
2025-11-09 08:46:53 -05:00
EUForest
52ce054b35
Add: Server location latitude and longitude
2025-11-04 14:53:43 +08:00
lain
d8e2e81688
add user subscribe note
2025-10-31 10:00:31 +08:00
EUForest
4312e20a5c
fix bug: init sql fail
2025-10-28 14:24:06 +08:00
Chang lue Tsen
528ed63a55
fix(version): log migration duration for database changes
2025-10-22 10:38:11 -04:00
Chang lue Tsen
aa5e472184
feat(traffic_log): add index on timestamp column and create down migration
2025-10-20 10:17:56 -04:00
Chang lue Tsen
a15e08d8f3
fix(ads): add description column only if it does not already exist
2025-10-18 17:42:02 +09:00
Chang lue Tsen
6db4c1b826
fix(ads): add description column only if it does not already exist
2025-10-18 16:29:09 +09:00
Chang lue Tsen
396862f59d
fix(user): modify SQL migration scripts to add columns only if they do not exist
2025-10-17 11:20:16 -04:00
Chang lue Tsen
2dae837323
fix(user): update SQL migration scripts to use IF NOT EXISTS for column additions
2025-10-17 10:20:12 -04:00