feat: shanbay guid

This commit is contained in:
DIYgod 2020-08-07 23:43:23 +08:00
parent bc586f5c69
commit bb94a1e64c
No known key found for this signature in database
GPG Key ID: D159328F47A80DCA
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ module.exports = async (ctx) => {
data &&
data.map((item) => {
let action = '';
item.tasks = item.tasks.sort((a, b) => b.used_time - a.used_time);
item.tasks.forEach((task, index) => {
const minute = Math.floor(task.used_time / 60);
const second = task.used_time - minute * 60;