|
@@ -477,22 +477,25 @@ func autoDraw(mode, cluename, phone string, isGroup, isCommerce int) (positionId
|
|
|
countres := 0
|
|
|
for _, v := range *countData {
|
|
|
if common.IntAll(v["status"]) == 1 {
|
|
|
+ log.Println("222", v, FindUpperLimit(gconv.String(common.Int64All(v["position_id"])), "positionId"))
|
|
|
if FindUpperLimit(gconv.String(common.Int64All(v["position_id"])), "positionId") {
|
|
|
continue
|
|
|
}
|
|
|
if countres == 0 {
|
|
|
+ log.Println("111", v)
|
|
|
res = common.Int64All(v["count"])
|
|
|
positionId = common.Int64All(v["position_id"])
|
|
|
} else {
|
|
|
if common.Int64All(v["count"]) <= res {
|
|
|
+ log.Println("3333", v)
|
|
|
res = common.Int64All(v["count"])
|
|
|
- seatNumber = common.ObjToString(v["seatNumber"])
|
|
|
-
|
|
|
+ positionId = common.Int64All(v["position_id"])
|
|
|
}
|
|
|
}
|
|
|
countres++
|
|
|
}
|
|
|
}
|
|
|
+ log.Println(444, res, positionId)
|
|
|
}
|
|
|
} else {
|
|
|
for _, kv := range *data {
|