fix
This commit is contained in:
parent
7b713902c4
commit
d02d14a27b
10
job.go
10
job.go
@ -1576,13 +1576,15 @@ func jobGWithdraw(j Job) {
|
|||||||
sha128 := sha256[:aes.BlockSize]
|
sha128 := sha256[:aes.BlockSize]
|
||||||
c, err := aes.NewCipher(sha128)
|
c, err := aes.NewCipher(sha128)
|
||||||
|
|
||||||
in := make([]byte, 8)
|
in := make([]byte, 0)
|
||||||
binary.LittleEndian.PutUint64(in, uint64(id))
|
buf := make([]byte, 8)
|
||||||
|
binary.LittleEndian.PutUint64(buf, uint64(id))
|
||||||
|
in = append(in, buf...)
|
||||||
|
binary.LittleEndian.PutUint64(buf, uint64(j.UserID64))
|
||||||
|
in = append(in, buf...)
|
||||||
out := make([]byte, len(in))
|
out := make([]byte, len(in))
|
||||||
|
|
||||||
c.Encrypt(out, in)
|
c.Encrypt(out, in)
|
||||||
out = append(out, 0)
|
|
||||||
out = append(out, 0)
|
|
||||||
ref := hex.EncodeToString(out)
|
ref := hex.EncodeToString(out)
|
||||||
|
|
||||||
log.Printf("jobGWithdraw[%d] : got all the info for ref %s\n", j.ID64, string(ref))
|
log.Printf("jobGWithdraw[%d] : got all the info for ref %s\n", j.ID64, string(ref))
|
||||||
|
Loading…
Reference in New Issue
Block a user