呃呃呃

This commit is contained in:
2025-04-12 10:54:26 +08:00
parent 4dfe3cef7f
commit 1e678ad6b6
17 changed files with 221 additions and 288 deletions

View File

@@ -155,7 +155,7 @@ _.router.post('/recommend', async function (req, res, next) {
* @apiVersion 1.0.0
*/
_.router.post('/info', async function (req, res, next) {
var id = req.headers.data.id;
var id = req.body.id;
var data = (await _.db.query({
sql: _.config.sql.getInfo,
@@ -192,7 +192,7 @@ _.router.post('/info', async function (req, res, next) {
* @apiVersion 1.0.0
*/
_.router.post('/activity', async function (req, res, next) {
var activity_id = req.headers.data.id;
var activity_id = req.body.id;
var data = await _.db.query({
sql: _.config.sql.getActivity,
@@ -229,7 +229,7 @@ _.router.post('/activity', async function (req, res, next) {
* @apiVersion 1.0.0
*/
_.router.post('/search', async function (req, res, next) {
var keyword = req.headers.data.keyword;
var keyword = req.body.keyword;
console.log("keyword ", keyword)
var data = await _.db.query({