[improvement-#12416] Use CollectionUtils.isEmpty judge the collection isEmpty to avoid NPE
#12449
Co-authored-by: fuchanghai <33984497+fuchanghai@users.noreply.github.com>
* Change the content of alert to an array
* Increase unit test coverage
* Modify the code format
* Modify the code format
* Modify judgment statement
* Deleting invalid References
* Modify the previous code implementation and improve the test data
* Modify the code format
* Move the location of the Content conversion
* Remove useless code
* Change the code format
* Modify unit tests
* Modify unit tests
* Modify unit tests
* Changing the location of the code
* Modify the code
Co-authored-by: fanwanlong <fanwanlong@kezaihui.com>
Co-authored-by: 范万龙 <fanwanlong@fanwanlongs-MBP.lan>
* change email attachment filename to add random string to avoid always use same file
* change email attachment filename to add random string to avoid always use same file
* fix wechat issues:
1. change table msg type to markdown.
2. change userId to not required and enrich hints
3. change 'app id' to 'app id and chat id'
* fix wechat issues:
1. revert table showtype and add markdown showtype.
2. enrich hints.
3. delete 'chatid', rename agentid to weChatAgentIdChatId.
4. modify code to send markdown message.
* fix wechat issues: Change the language pack of agentId to agentId/chatId.
* fix format
* fix param name
Co-authored-by: Amy <amywang0104@163.com>
* fix wechat alert with app and group chat
* add apache header and fix imports
* delete wechat alert 'userSendMsg' property code
* delete wechat alert 'userSendMsg' property code in Test
* delete wechat alert 'userSendMsg' property code in factory Test
* change `getSubWorkFlowParam` from private to protected