feat: add test VIP card VIP365-0000-0000-0000-0000 and admin set-vip endpoint

This commit is contained in:
2026-05-10 22:19:33 +08:00
parent 1b625c70c6
commit 5b23c88df9
2 changed files with 59 additions and 0 deletions

View File

@@ -59,6 +59,16 @@ async function main() {
{ type: 'YEAR', days: 365, count: 20 },
];
// 测试卡密 (固定值,方便开发验证)
await prisma.vipCard.create({
data: {
cardKey: 'VIP365-0000-0000-0000-0000',
cardType: 'YEAR',
days: 365,
},
}).catch(() => {});
console.log(`✅ 创建测试卡密: VIP365-0000-0000-0000-0000`);
let totalCards = 0;
for (const config of cardConfigs) {
const cards = [];