diff --git a/newBackApi/app.js b/newBackApi/app.js index 24d5448..911acf6 100644 --- a/newBackApi/app.js +++ b/newBackApi/app.js @@ -19,8 +19,8 @@ app.listen(config.port, () => { console.log(` 爬虫运行在下面网址: - 1️⃣ 公网IPV6: http://[${ipv6()}]:${config.port} - 2️⃣ 局域网IPV4: http://${ipv4()}:${config.port} + 1️⃣ 公网 IPV6: http://[${ipv6()}]:${config.port} + 2️⃣ 局域网 IPV4: http://${ipv4()}:${config.port} `) }) diff --git a/newBackApi/router/home.js b/newBackApi/router/home.js index 8e24f3b..006355c 100644 --- a/newBackApi/router/home.js +++ b/newBackApi/router/home.js @@ -48,7 +48,7 @@ router.get('/hot', async (req, res) => { }) -// 获取首页 默认的随机数据 +// 获取首页 默认的随机写真 // http://192.168.31.101:3030/v1/api/home/list router.get('/list', async (req, res) => { let $ = await Util.get(`${Config.baseUrl}/?orderby=rand`) diff --git a/newBackApi/router/search.js b/newBackApi/router/search.js index bd61288..e2c48be 100644 --- a/newBackApi/router/search.js +++ b/newBackApi/router/search.js @@ -4,7 +4,7 @@ import Config from '../config/config.js' const router = express.Router(); -// 搜索页面的热门搜索接口 +// 搜索页面的 热门关键词 & 推荐 // http://192.168.31.101:3030/v1/api/search/hot router.get('/hot', async (req, res) => { let $ = await Util.get(`${Config.baseUrl}/wp-admin/admin-ajax.php?action=search_box`) @@ -35,7 +35,7 @@ router.get('/hot', async (req, res) => { }) -// 搜索页面的热门搜索接口 +// 搜索接口 // http://192.168.31.101:3030/v1/api/search?keyword=杨晨晨 router.get('/', async (req, res) => { let { keyword, page } = req.query