feat: add support for Nunjuncks with btntext

This commit is contained in:
jeffjing
2019-12-10 13:26:03 +08:00
committed by GitHub
parent 7c09b00e73
commit b1482817f1
+6 -3
View File
@@ -55,10 +55,13 @@ function sendMsgFromWork({
safe,
title
}) {
title = render(title);
totag = render(totag);
const description = render(message);
title = title && render(title);
totag = totag && render(totag);
btntext = btntext && render(btntext);
const description = message && render(message);
const textcard = { title, url, btntext, description };
return request({
method: 'POST',
url: 'https://qyapi.weixin.qq.com/cgi-bin/message/send',