update
This commit is contained in:
parent
9eda74ffbf
commit
22da54b265
@ -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" {
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user