isEqual ApprovaeDetail

This commit is contained in:
jiangyong27 2024-07-04 18:26:21 +08:00
parent 9cfc71d488
commit 1f3492205d
1 changed files with 9 additions and 2 deletions

View File

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