update
This commit is contained in:
parent
9d845d3f2d
commit
1b613b0dd3
@ -104,17 +104,11 @@ func (d *DispatchView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
||||
paiqianBtn := widget.NewButton("派遣", func() {
|
||||
//弹窗
|
||||
form.OnSubmit = func() {
|
||||
logrus.Debug(hero1.Text, hero2.Text)
|
||||
if hero1.Text == "" && hero2.Text == "" {
|
||||
logrus.Debug("heroId参数不能为空")
|
||||
return
|
||||
}
|
||||
heroIds := []string{}
|
||||
if hero1.Text != "" {
|
||||
heroIds = append(heroIds, hero1.Text)
|
||||
} else if hero2.Text != "" {
|
||||
heroIds = append(heroIds, hero2.Text)
|
||||
}
|
||||
heroIds := []string{hero1.Text,hero2.Text}
|
||||
if err := service.GetPttService().SendToClient(
|
||||
t.MainType,
|
||||
"do",
|
||||
|
@ -356,6 +356,7 @@ func (this *modelDispatch) dispatch(uid string, taskId int32, heroIds []string,
|
||||
v.Status = 1 //任务进行中
|
||||
leftTime := configure.Now().Unix() + int64(taskConf.Tasktime)
|
||||
v.LeftTime = leftTime
|
||||
v.Exaward = flag
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user