feat: 手动充值、邀请码注册与后台管理增强
新增玩家手动充值全流程(收款方式配置、充值下单/审核、钱包上分), 支持邀请码注册、邀请历史与专属返水率;完善后台代理/玩家管理与响应式操作栏, 并补充前台注册、充值页及多语言错误码。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { PrismaClient } from '@prisma/client';
|
||||
import * as bcrypt from 'bcryptjs';
|
||||
import { syncWc2026OutrightMarket } from '../../domains/catalog/wc2026-outright.sync';
|
||||
import { ensureUserInviteCode } from '../../shared/common/invite-code.util';
|
||||
|
||||
export const DEMO_ACCOUNTS = [
|
||||
'admin / Admin@123',
|
||||
@@ -746,5 +747,13 @@ export async function runSeed(client: PrismaClient) {
|
||||
},
|
||||
}).catch(() => {});
|
||||
|
||||
const staffWithoutInvite = await prisma.user.findMany({
|
||||
where: { userType: { in: ['ADMIN', 'AGENT'] }, inviteCode: null },
|
||||
select: { id: true },
|
||||
});
|
||||
for (const row of staffWithoutInvite) {
|
||||
await ensureUserInviteCode(prisma, row.id);
|
||||
}
|
||||
|
||||
console.log(`Seed completed! ${DEMO_ACCOUNTS.join(', ')}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user