更新服务器信息为新的 IP 地址,调整相关文档和代码中的默认配置,确保部署和连接的一致性。同时,优化订单管理界面,增强商品信息的格式化逻辑,提升用户体验。

This commit is contained in:
2026-02-05 21:08:28 +08:00
parent 1a95aee112
commit 3ccf331e12
61 changed files with 11231 additions and 311 deletions

View File

@@ -128,13 +128,13 @@ export async function POST(request: NextRequest) {
const userId = generateUserId()
const referralCode = generateReferralCode(openId || phone || userId)
// 创建用户
// 创建用户(注意:不再使用 referred_by 字段)
await query(`
INSERT INTO users (
id, open_id, phone, nickname, password, wechat_id, avatar,
referral_code, referred_by, has_full_book, is_admin,
referral_code, has_full_book, is_admin,
earnings, pending_earnings, referral_count
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, FALSE, ?, 0, 0, 0)
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, FALSE, ?, 0, 0, 0)
`, [
userId,
openId || null,
@@ -144,7 +144,6 @@ export async function POST(request: NextRequest) {
wechatId || null,
avatar || null,
referralCode,
referredBy || null,
is_admin || false
])