This commit is contained in:
wh_zcy 2023-03-15 17:35:07 +08:00
parent 9d845d3f2d
commit 1b613b0dd3
2 changed files with 2 additions and 7 deletions

View File

@ -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",

View File

@ -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
}
}