feat: shanbay guid

This commit is contained in:
DIYgod
2020-08-07 02:22:58 +08:00
parent cea21a61c5
commit 4a996d6379
+2 -2
View File
@@ -33,12 +33,12 @@ module.exports = async (ctx) => {
item.tasks.forEach((task, index) => {
const minute = Math.floor(task.used_time / 60);
const second = task.used_time - minute * 60;
action += `${index === 0 ? '' : ';'}${task.operation}了 ${task.num} ${task.unit}${task.name},学习时间 ${minute} 分 ${second} 秒`;
action += `${index === 0 ? '' : ';'}${task.operation}了 ${task.num} ${task.unit}${task.name},学习时间 ${minute} 分 ${second} 秒`;
});
return {
title: `${username} 的第 ${item.checkin_days_num} 天扇贝打卡`,
pubDate: new Date(`${item.date} 00:00:00+08`),
guid: item.id,
guid: item.id + (+new Date(`${item.date} 00:00:00+08`) >= 1596729600000 ? action : ''),
description: action,
link: `https://web.shanbay.com/web/wechat/calendar/?user_id=${id}`,
};