2222
This commit is contained in:
6
package-lock.json
generated
Normal file
6
package-lock.json
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "授课内容",
|
||||||
|
"lockfileVersion": 3,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {}
|
||||||
|
}
|
||||||
2
历届学生/王智伟
2
历届学生/王智伟
Submodule 历届学生/王智伟 updated: e861c4027a...fb0e00be48
@@ -162,6 +162,13 @@ _.router.post('/info', async function (req, res, next) {
|
|||||||
data: [id]
|
data: [id]
|
||||||
}))[0]
|
}))[0]
|
||||||
|
|
||||||
|
console.log(data);
|
||||||
|
|
||||||
|
data.recommend_list = await _.db.query({
|
||||||
|
sql: 'SELECT * from wares ORDER BY wares_id LIMIT 6',
|
||||||
|
data: []
|
||||||
|
})
|
||||||
|
|
||||||
res.json({
|
res.json({
|
||||||
status: 200,
|
status: 200,
|
||||||
message: '请求成功',
|
message: '请求成功',
|
||||||
|
|||||||
@@ -1,7 +1,25 @@
|
|||||||
POST http://127.0.0.1:9090/home/search HTTP/1.1
|
# POST http://127.0.0.1:9090/home/search HTTP/1.1
|
||||||
|
# content-type: application/json
|
||||||
|
# token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTMsInVzZXJuYW1lIjoibGIiLCJpYXQiOjE3NDQ0MjYzNDUsImV4cCI6MTc0NDQzNzE0NX0.3YyQ8x7Nxj4f77szklO9h7iIBVMqZUXu5HZe1PvVirY
|
||||||
|
|
||||||
|
# {
|
||||||
|
# "keyword": "小米"
|
||||||
|
# }
|
||||||
|
|
||||||
|
|
||||||
|
# POST http://127.0.0.1:9090/user/login HTTP/1.1
|
||||||
|
# content-type: application/json
|
||||||
|
# token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTMsInVzZXJuYW1lIjoibGIiLCJpYXQiOjE3NDQ0MjYzNDUsImV4cCI6MTc0NDQzNzE0NX0.3YyQ8x7Nxj4f77szklO9h7iIBVMqZUXu5HZe1PvVirY
|
||||||
|
|
||||||
|
# {
|
||||||
|
# "name": "bmy123456",
|
||||||
|
# "pwd": "Lb123456"
|
||||||
|
# }
|
||||||
|
|
||||||
|
POST http://127.0.0.1:9090/home/info HTTP/1.1
|
||||||
content-type: application/json
|
content-type: application/json
|
||||||
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTMsInVzZXJuYW1lIjoibGIiLCJpYXQiOjE3NDQ0MjYzNDUsImV4cCI6MTc0NDQzNzE0NX0.3YyQ8x7Nxj4f77szklO9h7iIBVMqZUXu5HZe1PvVirY
|
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjAsInVzZXJuYW1lIjoiYm15MTIzNDU2IiwiaWF0IjoxNzQ0NjQyNjkyLCJleHAiOjE3NDQ2NTM0OTJ9.s8cG_f8-TsytaC6VvMUFDLauCUkIG09ogkjjQoUqO-g
|
||||||
|
|
||||||
{
|
{
|
||||||
"keyword": "小米"
|
"id": 140
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user