diff --git a/src/service/wechatwork.service.ts b/src/service/wechatwork.service.ts index 714424d..9c56b38 100644 --- a/src/service/wechatwork.service.ts +++ b/src/service/wechatwork.service.ts @@ -109,9 +109,9 @@ export class WechatWorkService { let starter = applyer.userid for (let content of contents) { let { control, value, title } = content - if (control === 'Text' && title.text == '名字') { + if (control === 'Text' && title[0].text == '名字') { name = value.text - } else if (control === 'Text' && title.text == '描述') { + } else if (control === 'Text' && title[0].text == '描述') { desc = value.text } else if (control === 'File' && value.files.length > 0) { fileId = value.files[0].file_id