222
This commit is contained in:
@@ -286,7 +286,6 @@ _.router.post('/activity', async function (req, res, next) {
|
|||||||
*/
|
*/
|
||||||
_.router.post('/search', async function (req, res, next) {
|
_.router.post('/search', async function (req, res, next) {
|
||||||
var keyword = req.body.keyword;
|
var keyword = req.body.keyword;
|
||||||
console.log("keyword: ", keyword)
|
|
||||||
|
|
||||||
var data = await _.db.query({
|
var data = await _.db.query({
|
||||||
sql: `SELECT * from wares where wares_title LIKE "%${keyword}%"`,
|
sql: `SELECT * from wares where wares_title LIKE "%${keyword}%"`,
|
||||||
|
|||||||
@@ -16,13 +16,13 @@
|
|||||||
# "pwd": "Lb123456"
|
# "pwd": "Lb123456"
|
||||||
# }
|
# }
|
||||||
|
|
||||||
# POST http://127.0.0.1:9090/home/info HTTP/1.1
|
POST http://127.0.0.1:9090/home/search HTTP/1.1
|
||||||
# content-type: application/json
|
content-type: application/json
|
||||||
# token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjAsInVzZXJuYW1lIjoiYm15MTIzNDU2IiwiaWF0IjoxNzQ0NjQyNjkyLCJleHAiOjE3NDQ2NTM0OTJ9.s8cG_f8-TsytaC6VvMUFDLauCUkIG09ogkjjQoUqO-g
|
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjEsInVzZXJuYW1lIjoiYm15MTIzNDU2IiwiaWF0IjoxNzQ0ODEyMzg0LCJleHAiOjE3NDQ4MjMxODR9.WcCQ9Viinnqg8jCp_qJgDh4FB3pss56xdT3EV0rgeLA
|
||||||
|
|
||||||
# {
|
{
|
||||||
# "id": 140
|
"keyword": "oppo"
|
||||||
# }
|
}
|
||||||
|
|
||||||
|
|
||||||
# POST http://127.0.0.1:9090/home/hotSales HTTP/1.1
|
# POST http://127.0.0.1:9090/home/hotSales HTTP/1.1
|
||||||
@@ -32,9 +32,9 @@
|
|||||||
# {
|
# {
|
||||||
# }
|
# }
|
||||||
|
|
||||||
POST http://127.0.0.1:9090/type/titleList HTTP/1.1
|
# POST http://127.0.0.1:9090/type/titleList HTTP/1.1
|
||||||
content-type: application/json
|
# content-type: application/json
|
||||||
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjEsInVzZXJuYW1lIjoiYm15MTIzNDU2IiwiaWF0IjoxNzQ0ODEyMzg0LCJleHAiOjE3NDQ4MjMxODR9.WcCQ9Viinnqg8jCp_qJgDh4FB3pss56xdT3EV0rgeLA
|
# token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjEsInVzZXJuYW1lIjoiYm15MTIzNDU2IiwiaWF0IjoxNzQ0ODEyMzg0LCJleHAiOjE3NDQ4MjMxODR9.WcCQ9Viinnqg8jCp_qJgDh4FB3pss56xdT3EV0rgeLA
|
||||||
|
|
||||||
{
|
# {
|
||||||
}
|
# }
|
||||||
|
|||||||
Reference in New Issue
Block a user