邀请 N天配置

This commit is contained in:
2026-03-08 07:31:11 -07:00
parent 7a3a53f1a9
commit 4907853667
4 changed files with 68 additions and 4 deletions
@@ -0,0 +1,4 @@
DELETE
FROM `system`
WHERE `category` = 'invite'
AND `key` = 'GiftDays';
@@ -0,0 +1,14 @@
INSERT INTO `system` (`category`, `key`, `value`, `type`, `desc`, `created_at`, `updated_at`)
SELECT 'invite',
'GiftDays',
'3',
'int',
'Invite gift days',
NOW(3),
NOW(3)
WHERE NOT EXISTS (
SELECT 1
FROM `system`
WHERE `category` = 'invite'
AND `key` = 'GiftDays'
);