mirror of
https://github.com/lizheming/drone-wechat.git
synced 2026-06-04 18:33:46 +08:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f6d38f75a8 | |||
| 58ca98d95f | |||
| b1482817f1 | |||
| 7c09b00e73 | |||
| 27431b7e9d |
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "drone-wechat",
|
||||
"version": "1.1.5",
|
||||
"version": "1.1.7",
|
||||
"description": "drone wechat notification plugin",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -55,9 +55,13 @@ function sendMsgFromWork({
|
||||
safe,
|
||||
title
|
||||
}) {
|
||||
title = render(title);
|
||||
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',
|
||||
|
||||
Reference in New Issue
Block a user