From 54821df68aac5bac7ca0ba27f1c9e4e0268607a7 Mon Sep 17 00:00:00 2001 From: jiangyong Date: Sun, 1 Jun 2025 13:15:59 +0800 Subject: [PATCH] qyweixin Selector --- qyweixin/app_approve.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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" {