Update tg.js

This commit is contained in:
jkliao.tw 2020-07-16 14:55:51 +08:00 committed by GitHub
parent 9c832758ab
commit d41aa2d52b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ async function get_task_info (task_id) {
const { file_count, folder_count, total_size } = summary ? JSON.parse(summary) : {} const { file_count, folder_count, total_size } = summary ? JSON.parse(summary) : {}
const total_count = (file_count || 0) + (folder_count || 0) const total_count = (file_count || 0) + (folder_count || 0)
const copied_folders = folder_mapping ? (folder_mapping.length - 1) : 0 const copied_folders = folder_mapping ? (folder_mapping.length - 1) : 0
let text = '任務ID' + task_id + '\n' let text = '任務ID' + task_id + ' [' + status + ']\n'
const folder_name = await get_folder_name(source) const folder_name = await get_folder_name(source)
text += '源資料夾:' + gen_link(source, folder_name) + '\n' text += '源資料夾:' + gen_link(source, folder_name) + '\n'
text += '目的位置:' + gen_link(target, get_alias_by_target(target)) + '\n' text += '目的位置:' + gen_link(target, get_alias_by_target(target)) + '\n'