feat(admin,api,player): smart score solver, disable settlement UI, misc fixes

This commit is contained in:
2026-06-04 17:56:32 +08:00
parent 9fcee31a9a
commit 6264b8806c
12 changed files with 356 additions and 16 deletions

View File

@@ -33,6 +33,7 @@ export class WalletService {
operatorId: bigint,
remark?: string,
referenceId?: string,
transactionType = 'MANUAL_DEPOSIT',
) {
const amt = new Decimal(amount);
if (amt.lte(0)) throw new BadRequestException('Amount must be positive');
@@ -55,7 +56,7 @@ export class WalletService {
transactionId: generateTransactionId(),
userId,
walletId: w.id,
transactionType: 'MANUAL_DEPOSIT',
transactionType,
amount: amt,
balanceBefore,
balanceAfter,