test
This commit is contained in:
parent
0bb0fd38b7
commit
7cb6ceeb54
6
job.go
6
job.go
@ -1587,8 +1587,10 @@ func jobGWithdraw(j Job) {
|
|||||||
c.Encrypt(out, in)
|
c.Encrypt(out, in)
|
||||||
ref := hex.EncodeToString(out)
|
ref := hex.EncodeToString(out)
|
||||||
|
|
||||||
user := bot.ChatByID(fmt.Sprintf("%d", p.UserID64))
|
user, err := bot.ChatByID(fmt.Sprintf("%d", p.UserID64))
|
||||||
stock := new(string)
|
logOnError(err, "jobGWithdraw : ChatByID")
|
||||||
|
|
||||||
|
var stock string
|
||||||
for _, i := range p.Items {
|
for _, i := range p.Items {
|
||||||
if i.Available > i.Required {
|
if i.Available > i.Required {
|
||||||
stock = fmt.Sprintf("%s\n%d x %s", stock, i.Required, i.Name)
|
stock = fmt.Sprintf("%s\n%d x %s", stock, i.Required, i.Name)
|
||||||
|
Loading…
Reference in New Issue
Block a user