fix(route): 上海市药品监督管理局发布时间 (#11265)
This commit is contained in:
@@ -41,8 +41,10 @@ module.exports = async (ctx) => {
|
||||
|
||||
const content = cheerio.load(detailResponse.data);
|
||||
|
||||
const pubDate = content('meta[name="pubdate"]').attr('content') || content('meta[name="PubDate"]').attr('content');
|
||||
|
||||
item.description = content('#ivs_content').html();
|
||||
item.pubDate = timezone(parseDate(content('meta[name="pubdate"]').attr('content')), +8);
|
||||
item.pubDate = timezone(parseDate(pubDate, ['YYYY-MM-DD HH:mm:ss', 'YYYY-MM-DD HH:mm']), +8);
|
||||
} catch (e) {
|
||||
// no-empty
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user