This commit is contained in:
Issue哥 2020-06-27 14:25:50 +08:00
parent 5b1151035c
commit 3c9d6e76c5
1 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ async function send_all_tasks (chat_id) {
const headers = ['ID', 'status', 'ctime'] const headers = ['ID', 'status', 'ctime']
records = records.map(v => { records = records.map(v => {
const { id, status, ctime } = v const { id, status, ctime } = v
return [id, status, dayjs(ctime).format('MM-DD HH:mm')] return [id, status, dayjs(ctime).format('YYYY-MM-DD HH:mm:ss')]
}) })
tb.push(headers, ...records) tb.push(headers, ...records)
const text = tb.toString().replace(/─/g, '—') const text = tb.toString().replace(/─/g, '—')
@ -84,8 +84,8 @@ async function send_task_info ({ task_id, chat_id }) {
text += '源ID' + gen_link(source) + '\n' text += '源ID' + gen_link(source) + '\n'
text += '目的ID' + gen_link(target) + '\n' text += '目的ID' + gen_link(target) + '\n'
text += '任务状态:' + status + '\n' text += '任务状态:' + status + '\n'
text += '创建时间:' + dayjs(ctime).format('YYYY-MM-DD HH:mm') + '\n' text += '创建时间:' + dayjs(ctime).format('YYYY-MM-DD HH:mm:ss') + '\n'
text += '完成时间:' + (ftime ? dayjs(ftime).format('YYYY-MM-DD HH:mm') : '未完成') + '\n' text += '完成时间:' + (ftime ? dayjs(ftime).format('YYYY-MM-DD HH:mm:ss') : '未完成') + '\n'
text += '目录进度:' + copied_folders + '/' + (folder_count === undefined ? '未知数量' : folder_count) + '\n' text += '目录进度:' + copied_folders + '/' + (folder_count === undefined ? '未知数量' : folder_count) + '\n'
text += '文件进度:' + copied_files + '/' + (file_count === undefined ? '未知数量' : file_count) + '\n' text += '文件进度:' + copied_files + '/' + (file_count === undefined ? '未知数量' : file_count) + '\n'
text += '总大小:' + (total_size || '未知大小') text += '总大小:' + (total_size || '未知大小')