呃呃呃
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user