|
|
@ -85,7 +85,15 @@ func APDefaultLayout() fyne.CanvasObject {
|
|
|
|
dialog.ShowError(errors.New("已经报到"), CardWindow)
|
|
|
|
dialog.ShowError(errors.New("已经报到"), CardWindow)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
url := "http://" + Common.LoadConfig().SeverData.ServerIP + ":9800/vhwcapi/v1/web/api/service/congresscontrol/checkinBatch"
|
|
|
|
|
|
|
|
|
|
|
|
targetIP := Common.GetAvailableEndpoint()
|
|
|
|
|
|
|
|
if targetIP == "" {
|
|
|
|
|
|
|
|
log.Error("所有IP均不可达")
|
|
|
|
|
|
|
|
log.Println("所有IP均不可达")
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
url := "http://" + targetIP + ":9800/vhwcapi/v1/web/api/service/congresscontrol/checkinBatch"
|
|
|
|
data := map[string]interface{}{
|
|
|
|
data := map[string]interface{}{
|
|
|
|
"updatebatchobj": []map[string]interface{}{
|
|
|
|
"updatebatchobj": []map[string]interface{}{
|
|
|
|
{"perid": &(localcache.AllPerson[CurrentAPID.Row].AP_ID)},
|
|
|
|
{"perid": &(localcache.AllPerson[CurrentAPID.Row].AP_ID)},
|
|
|
@ -125,7 +133,15 @@ func APDefaultLayout() fyne.CanvasObject {
|
|
|
|
dialog.ShowError(errors.New("已经销报"), CardWindow)
|
|
|
|
dialog.ShowError(errors.New("已经销报"), CardWindow)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
url := "http://" + Common.LoadConfig().SeverData.ServerIP + ":9800/vhwcapi/v1/web/api/service/congresscontrol/checkoutBatch"
|
|
|
|
|
|
|
|
|
|
|
|
targetIP := Common.GetAvailableEndpoint()
|
|
|
|
|
|
|
|
if targetIP == "" {
|
|
|
|
|
|
|
|
log.Error("所有IP均不可达")
|
|
|
|
|
|
|
|
log.Println("所有IP均不可达")
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
url := "http://" + targetIP + ":9800/vhwcapi/v1/web/api/service/congresscontrol/checkoutBatch"
|
|
|
|
data := map[string]interface{}{
|
|
|
|
data := map[string]interface{}{
|
|
|
|
"updatebatchobj": []map[string]interface{}{
|
|
|
|
"updatebatchobj": []map[string]interface{}{
|
|
|
|
{"perid": &(localcache.AllPerson[CurrentAPID.Row].AP_ID)},
|
|
|
|
{"perid": &(localcache.AllPerson[CurrentAPID.Row].AP_ID)},
|
|
|
|