This commit is contained in:
wh_zcy 2022-12-29 10:17:19 +08:00
parent 9eda74ffbf
commit 22da54b265
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{} aSel = &widget.Select{}
gridContainer = container.NewGridWithColumns(3, aSel, tEntry, nEntry) 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.SetSelected("选择")
aSel.OnChanged = func(s string) { aSel.OnChanged = func(s string) {
if s == "attr" { if s == "attr" {

View File

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