fix login bug

This commit is contained in:
maojindao55
2025-03-28 08:47:45 +08:00
parent 86b045026f
commit b75e0daaf0

View File

@@ -97,6 +97,8 @@ export const onRequestPost: PagesFunction<Env> = async (context) => {
WHERE phone = ?
`).bind(phone).first();
userId = userInfo.id
// 生成 token
const token = await generateToken(userId, env);