diff --git a/qyweixin/app_approve.go b/qyweixin/app_approve.go index 66a3b1e..184ef77 100644 --- a/qyweixin/app_approve.go +++ b/qyweixin/app_approve.go @@ -90,8 +90,15 @@ type AppApprove struct { func (d *ApproveDetail) GetValue(title string) string { for _, content := range d.ApplyData.Contents { - key := content.Title[0].Text - if key != title { + + isEqual := false + for _, ti := range content.Title { + if ti.Text == title { + isEqual = true + } + } + + if !isEqual { continue }