mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-25 10:14:31 +08:00
* 增加解析即刻用户动态中的创建主题类消息 Signed-off-by: 朵爷 <soyaine@outlook.com> * fix issue title bug of ziroom
This commit is contained in:
@@ -5,8 +5,8 @@ const config = require('../../config');
|
||||
module.exports = async (ctx) => {
|
||||
const city = ctx.params.city || 'sh';
|
||||
const keyword = ctx.params.keyword || '';
|
||||
const iswhole = ctx.params.iswhole || 0;
|
||||
const room = ctx.params.room || 1;
|
||||
const iswhole = ctx.params.iswhole || '0';
|
||||
const room = ctx.params.room || '1';
|
||||
const domain = `${city === 'bj' ? '' : city + '.'}m.ziroom.com`;
|
||||
|
||||
const response = await axios({
|
||||
@@ -41,9 +41,9 @@ module.exports = async (ctx) => {
|
||||
];
|
||||
|
||||
ctx.state.data = {
|
||||
title: `自如的${keyword}${iswhole ? '整租' : '合租'}${room}室房源`,
|
||||
title: `自如的${keyword}${iswhole !== '0' ? '整租' : '合租'}${room}室房源`,
|
||||
link: `http://${domain}`,
|
||||
description: `自如的${keyword}${iswhole ? '整租' : '合租'}${room}室房源`,
|
||||
description: `自如的${keyword}${iswhole !== '0' ? '整租' : '合租'}${room}室房源`,
|
||||
item: data.map((item) => ({
|
||||
title: item.title,
|
||||
description: `${item.room_name}<img referrerpolicy="no-referrer" src="${item.list_img}">`,
|
||||
|
||||
Reference in New Issue
Block a user