This commit is contained in:
2025-04-16 22:59:21 +08:00
parent 47407b4fd2
commit bdfac00b17
2 changed files with 11 additions and 12 deletions

View File

@@ -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}%"`,

View File

@@ -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
{ # {
} # }