master
huanghai 5 years ago
parent f5e7c18495
commit c727fb1d1b

@ -98,14 +98,17 @@ func DataExchange() {
} }
//利用切片分批次上报 //利用切片分批次上报
if len(list) > limit { if len(list) > limit {
success:=PostToServer(t, list[0:limit]) success:=PostToServer(t, list[0:limit]) //0-99不包含100
if !success{ if !success{
continue continue
} }
count = count + limit count = count + limit
list = list[limit:] list = list[limit:]
} else if len(list) > 0 { } else if len(list) > 0 {
PostToServer(t, list) success:=PostToServer(t, list)
if !success{
continue
}
count = count + len(list) count = count + len(list)
isFinish = true isFinish = true
} else { } else {

Loading…
Cancel
Save