Add user authentication with JWT login and registration

This commit is contained in:
2026-05-16 19:27:04 +08:00
parent 27a170ec0c
commit 99837bea9a
22 changed files with 1219 additions and 474 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ router.post("/", async (req, res) => {
}
try {
const result = await classifyDeals(ids);
const result = await classifyDeals(ids, req.userId);
res.json({ success: true, ...result });
} catch (err) {
console.error("[Reco] 分类失败:", err);