This commit is contained in:
shoopea 2020-01-16 22:55:21 +08:00
parent 0bb0fd38b7
commit 7cb6ceeb54

6
job.go
View File

@ -1587,8 +1587,10 @@ func jobGWithdraw(j Job) {
c.Encrypt(out, in)
ref := hex.EncodeToString(out)
user := bot.ChatByID(fmt.Sprintf("%d", p.UserID64))
stock := new(string)
user, err := bot.ChatByID(fmt.Sprintf("%d", p.UserID64))
logOnError(err, "jobGWithdraw : ChatByID")
var stock string
for _, i := range p.Items {
if i.Available > i.Required {
stock = fmt.Sprintf("%s\n%d x %s", stock, i.Required, i.Name)