fix: add xueqiu snb guid (#4371)

This commit is contained in:
hoilc 2020-04-02 20:59:47 +08:00 committed by GitHub
parent 69d6e08a84
commit 5301be5d9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -23,12 +23,14 @@ module.exports = async (ctx) => {
const prev_weight_adjusted = some_detail.prev_weight_adjusted ? some_detail.prev_weight_adjusted : 0;
description += some_detail.stock_name + ' from ' + prev_weight_adjusted + ' to ' + some_detail.target_weight + '\n';
}
const time = obj.sell_rebalancing.updated_at;
const single = {
title,
description,
pubDate: new Date().toUTCString(),
pubDate: new Date(time).toUTCString(),
link: url,
guid: `xueqiu::snb::${id}::${time}`,
};
ctx.state.data = {