* 增加解析即刻用户动态中的创建主题类消息 Signed-off-by: 朵爷 <soyaine@outlook.com> * fix issue title bug of ziroom
This commit is contained in:
parent
ddeddae6af
commit
d5d58ee307
|
|
@ -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}">`,
|
||||
|
|
|
|||
Loading…
Reference in New Issue