EUForest
7d4a19c9a3
fix: add quota limit check to prevent subscription bypass
...
- Add quota check in preCreateOrderLogic for order preview
- Move quota check inside transaction in purchaseLogic to prevent race condition
- Add quota check in activateOrderLogic as final safeguard when creating subscription
- Add quota check in redeemCodeLogic when redeeming codes for new subscriptions
2026-01-10 21:18:26 +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
3f3b0ae6ad
up: Redemption Code
2026-01-06 16:15:10 +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
fb6adc9ae3
feat(subscribe): add inventory check and update logic for subscription plans
2025-12-28 22:44:14 +08:00
Tension
7a2000f696
feat(discount): change discount type to float64 for improved precision
2025-12-28 22:04:50 +08:00
EUForest
39db154e53
fix bug: Flag free trial
2025-12-17 22:09:46 +08:00
EUForest
76ff9a658d
Merge branch perfect-panel/master/server into develop
2025-12-11 23:53:32 +08:00
Tension
5d632608ab
fix(purchase): update notification URL construction for gateway mode support
2025-12-08 15:47:45 +08:00
Tension
143445a2fc
feat(commission): implement commission withdrawal logic and logging
2025-11-29 14:33:05 +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
EUForest
95ddba2332
update: Added support for floating-point calculations for discounts
2025-11-21 17:40:03 +08:00
EUForest
c1efb23354
update: Added support for floating-point calculations for discounts
2025-11-21 17:39:57 +08:00
Chang lue Tsen
e3999ba75f
feat(subscribe): add short token generation and validation logic
2025-11-18 12:03:14 -05:00
EUForest
3635d3e224
update: device delete current user
2025-11-13 14:49:25 +08:00
EUForest
60d584a052
add: User cancels account
2025-11-09 17:27:24 +08:00
EUForest
902608b2e0
Add: Get expired subscription
2025-11-08 17:06:30 +08:00
EUForest
d7aa9a44b7
Add: Try to get the device ID from the request parameters
2025-11-08 17:05:52 +08:00
EUForest
d1a8662095
Add: Add a WebSocket connection to monitor the app's online status.
2025-11-06 15:35:49 +08:00
EUForest
52ce054b35
Add: Server location latitude and longitude
2025-11-04 14:53:43 +08:00
EUForest
2605d22f8e
Add: ClearServerAllCache Func
2025-11-01 16:05:37 +08:00
lain
d8e2e81688
add user subscribe note
2025-10-31 10:00:31 +08:00
EUForest
cd3b9d4fc8
Merge remote-tracking branch 'upstream'
...
# Conflicts:
# apis/public/subscribe.api
# initialize/migrate/database/02115_ads.up.sql
# internal/logic/auth/deviceLoginLogic.go
# internal/logic/public/subscribe/queryUserSubscribeNodeListLogic.go
# internal/logic/public/user/unbindDeviceLogic.go
# internal/types/types.go
# pkg/tool/encryption_test.go
2025-10-22 20:16:03 +08:00
EUForest
b099331302
add: Add protocol configuration in the return node
2025-10-22 19:54:56 +08:00
EUForest
d78d79fa2d
add: Automatically delete token when device is removed
2025-10-22 19:52:52 +08:00
Chang lue Tsen
1b76794251
fix(coupon): add expiration check and error handling for expired coupons
2025-10-16 09:31:33 -04:00
Ember Moth
8b48286365
add payment type field (alipay/wxpay) to EPay config
2025-10-15 23:20:33 +09:00
EUForest
96808d531a
Application device interface encryption and other bug fixes ( #87 )
...
* add: device login
* update: global config
* add: User transmission interface encryption
* update: get global config
* update: User transmission interface encryption
* add: get device list
* add: SecretIsEmpty Message
* update: device middleware
* add: query user subscribe node list
* fix bug: query device list
* fix bug: unbind device
* update: device login
* fix bug: The ad table is missing the description field
* fix bug:page size is zero
* update: Device Middleware
* fix bug: Site custom data update failed
2025-10-15 10:09:19 -04:00
Chang lue Tsen
adbe9a06d8
feat(exchange): add exchange rate handling and scheduled updates
2025-10-15 10:05:19 -04:00
EUForest
b80c7caddd
fix bug: unbind device
2025-10-14 11:37:13 +08:00
EUForest
640b8c0805
add: query user subscribe node list
2025-10-13 19:16:36 +08:00
EUForest
9ea5c626e9
add: get device list
2025-10-12 19:11:39 +08:00
Ember Moth
25c7eb3927
fix(purchase): resolve balance payment transaction inconsistency causing Internal Server Error ( #81 )
2025-09-28 12:34:18 -04:00
Chang lue Tsen
9777a0c61a
fix(purchase): update payment processing to use CryptoSaaSPayment method
2025-09-28 12:28:44 -04:00
Chang lue Tsen
900096ed12
fix(coupon): add check for zero count in coupon usage validation
2025-09-16 10:17:18 -04:00
Chang lue Tsen
31cdcd2cb9
fix(balance): update QueryUserBalanceLog response structure to include balance log list
2025-09-07 11:59:34 -04:00
Chang lue Tsen
4d95834c22
feat(payment): add support for CryptoSaaS payment platform and enhance configuration handling
2025-09-06 12:22:39 -04:00
Chang lue Tsen
d5ed82955e
fix(purchase): streamline error handling and improve JSON marshaling for temporary orders
2025-09-06 11:03:14 -04:00
Chang lue Tsen
1d878592ed
fix(log): rename OrderId to OrderNo for consistency in balance logging
2025-09-05 10:25:19 -04:00
Chang lue Tsen
d0d03e724e
fix(log): replace magic number with constant for gift type in purchase checkout logic
2025-09-05 09:52:45 -04:00
Chang lue Tsen
3199dc5141
fix(balance): add timestamp to balance logs for payment, refund, and recharge transactions
2025-09-05 09:29:19 -04:00
Chang lue Tsen
0636a4bddf
feat(subscription): implement FilterList method for subscription queries and update related logic
2025-09-04 10:20:35 -04:00
Chang lue Tsen
10757612f5
feat(subscription): add Language parameter to GetSubscription request and update query logic
2025-09-04 03:14:31 -04:00
Chang lue Tsen
f632ea2c89
feat(subscribe): add Language field to subscription models and update query logic
2025-09-03 15:44:04 -04:00
Chang lue Tsen
82fd674ae4
feat(api): standardize timestamp field across log structures
2025-08-26 14:39:54 -04:00
Chang lue Tsen
ad4f3df74e
feat(server): implement server management handlers and database schema
2025-08-25 14:06:37 -04:00
Chang lue Tsen
6b1b365734
refactor(log): remove Reset Subscribe Traffic Log endpoint and related types
2025-08-21 11:19:45 -04:00