update
This commit is contained in:
parent
82974abfb1
commit
dc948f5145
@ -41,7 +41,7 @@ func (d *DispatchView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
||||
|
||||
//玩家公告
|
||||
d.noticeLabl = new(widget.Label)
|
||||
noticeBtn := widget.NewButton("玩家公告", func() {
|
||||
noticeFun := func() {
|
||||
d.itemList.Reset()
|
||||
if err := service.GetPttService().SendToClient(
|
||||
t.MainType,
|
||||
@ -51,7 +51,9 @@ func (d *DispatchView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
||||
logrus.Error(err)
|
||||
return
|
||||
}
|
||||
|
||||
}
|
||||
noticeBtn := widget.NewButton("玩家公告", func() {
|
||||
noticeFun()
|
||||
})
|
||||
//刷新公告
|
||||
refreshBtn := widget.NewButton("刷新公告", func() {
|
||||
@ -63,6 +65,7 @@ func (d *DispatchView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
||||
logrus.Error(err)
|
||||
return
|
||||
}
|
||||
noticeFun()
|
||||
})
|
||||
|
||||
//领取奖励
|
||||
|
Loading…
Reference in New Issue
Block a user