This commit is contained in:
liwei1dao 2022-12-29 11:43:39 +08:00
commit 2f8095616c
2 changed files with 10 additions and 10 deletions

View File

@ -46,7 +46,7 @@ func (this *BingoView) CreateView(t *model.TestCase) fyne.CanvasObject {
aSel = &widget.Select{}
gridContainer = container.NewGridWithColumns(3, aSel, tEntry, nEntry)
aSel.Options = []string{"选择", "attr", "item", "hero", "equi", "mapid", "pataid", "alltask", "worldtask", "sociatyexp", "sociatyactivity", "allgrowtask", "userlv"}
aSel.Options = []string{"选择", "attr", "item", "hero", "equi", "mapid", "pataid", "alltask", "worldtask", "sociatyexp", "sociatyactivity", "allgrowtask", "lv"}
aSel.SetSelected("选择")
aSel.OnChanged = func(s string) {
if s == "attr" {

View File

@ -78,15 +78,15 @@ func (this *User) Start() (err error) {
if this.globalConf == nil {
err = errors.New("global config not found")
}
go func() {
timeSec := time.NewTicker(time.Second * 30)
for {
select {
case <-timeSec.C:
this.RecoverUserVit()
}
}
}()
// go func() {
// timeSec := time.NewTicker(time.Second * 30)
// for {
// select {
// case <-timeSec.C:
// this.RecoverUserVit()
// }
// }
// }()
return
}