Add user authentication with JWT login and registration
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user