diff --git a/qyweixin/app_approve.go b/qyweixin/app_approve.go index 1cfcbc8..d853c8d 100644 --- a/qyweixin/app_approve.go +++ b/qyweixin/app_approve.go @@ -104,7 +104,11 @@ func (d *ApproveDetail) GetValue(title string) string { var value string if content.Control == "Selector" { - value = content.Value.Selector.Options[0].Value[0].Text + for _, v := range content.Value.Selector.Options[0].Value { + if v.Text != "" { + value = v.Text + } + } } else if content.Control == "Text" || content.Control == "Textarea" { value = content.Value.Text } else if content.Control == "Date" {