This commit is contained in:
shoopea 2019-12-13 19:36:19 +08:00
parent 5fe9a88ea3
commit c7c02661ef

3
job.go
View File

@ -705,6 +705,9 @@ func jobGStock(j Job) {
err = json.Unmarshal(j.Payload, &p) err = json.Unmarshal(j.Payload, &p)
logOnError(err, "jobGStock : Unmarshal payload") logOnError(err, "jobGStock : Unmarshal payload")
fmt.Printf("jobGStock : Progress => %d\n", p.Progress)
fmt.Printf("jobGStock : UserID64 => %d\n", j.UserID64)
switch p.Progress { switch p.Progress {
case 0: // send /g_stock_res case 0: // send /g_stock_res
p.Progress = 1 p.Progress = 1