Authored by 郭成尧

Merge branch 'feature/bugfix61' into 'release/6.1'

qa-page



See merge request !936
... ... @@ -91,11 +91,16 @@ exports.qaDetail = (req, res, next) => {
if (id) { // 有 ID 直接通过 ID 取数据
let detailApi = yield chatQaModel.getDetailById(req.query.id);
detailData = _.get(detailApi, 'data.helpdetail_list[0]');
if (id === '286') { // 礼品卡
return res.send(_.get(detailData, 'content'));
}
return res.send(`
<html>
<head>
<title>${_.get(detailApi, 'data.helpdetail_list[0].caption')}</title>
</head>
<body>
${_.get(detailApi, 'data.helpdetail_list[0].content')}
</body>
<html>
`);
} else {
let params = {
sonId: req.query.sonId,
... ...