From d5d58ee3076aacc438df93fe5b69b0ced5c8e772 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=A0=E7=B3=96=E7=8E=9B=E6=96=87=E6=9C=B5?= Date: Wed, 6 Jun 2018 23:03:17 +0800 Subject: [PATCH] fix issue #274 (#276) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 增加解析即刻用户动态中的创建主题类消息 Signed-off-by: 朵爷 * fix issue title bug of ziroom --- routes/ziroom/room.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/routes/ziroom/room.js b/routes/ziroom/room.js index c7d9bcf2d5..822b94f88d 100644 --- a/routes/ziroom/room.js +++ b/routes/ziroom/room.js @@ -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}`,