fix output

This commit is contained in:
shoopea 2020-02-01 19:17:17 +08:00
parent bbf3b3a638
commit ab0a7928b4

8
job.go
View File

@ -1243,9 +1243,9 @@ func jobVaultItemStatus(j Job) {
chat, err := bot.ChatByID(strconv.FormatInt(userId, 10))
logOnError(err, "jobVaultItemStatus : ChatByID")
if err == nil {
out = fmt.Sprintf("%s%-32s |%6d |%6d |%6d\n", out, chat.Username, depositList[i], withdrawList[i], depositList[i]-withdrawList[i])
out = fmt.Sprintf("%s@%-31s |%6d |%6d |%6d\n", out, chat.Username, depositList[i], withdrawList[i], depositList[i]-withdrawList[i])
} else {
out = fmt.Sprintf("%s%-32d |%6d |%6d |%6d\n", out, userId, depositList[i], withdrawList[i], depositList[i]-withdrawList[i])
out = fmt.Sprintf("%s#%-31d |%6d |%6d |%6d\n", out, userId, depositList[i], withdrawList[i], depositList[i]-withdrawList[i])
}
}
out = fmt.Sprintf("%s</code>", out)
@ -1276,9 +1276,9 @@ func jobVaultItemStatus(j Job) {
chat, err := bot.ChatByID(strconv.FormatInt(userId, 10))
logOnError(err, "jobVaultItemStatus : ChatByID")
if err == nil {
out = fmt.Sprintf("%s%-32s |%6d |%6d |%6d\n", out, chat.Username, depositList[i], withdrawList[i], depositList[i]-withdrawList[i])
out = fmt.Sprintf("%s@%-31s |%6d |%6d |%6d\n", out, chat.Username, depositList[i], withdrawList[i], depositList[i]-withdrawList[i])
} else {
out = fmt.Sprintf("%s%-32d |%6d |%6d |%6d\n", out, userId, depositList[i], withdrawList[i], depositList[i]-withdrawList[i])
out = fmt.Sprintf("%s#%-31d |%6d |%6d |%6d\n", out, userId, depositList[i], withdrawList[i], depositList[i]-withdrawList[i])
}
}
out = fmt.Sprintf("%s</code>", out)