From d670a4523da4859b075beb7fc08c959d96c5d6ab Mon Sep 17 00:00:00 2001 From: binaryify Date: Wed, 8 May 2019 23:13:29 +0800 Subject: [PATCH] add share_friend --- module/share_friend.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 module/share_friend.js diff --git a/module/share_friend.js b/module/share_friend.js new file mode 100644 index 0000000..0fa1913 --- /dev/null +++ b/module/share_friend.js @@ -0,0 +1,15 @@ +// 分享歌曲到动态 + +module.exports = (query, request) => { + const data = { + type: "song", + msg: query.msg, + id: query.id || "" + }; + return request( + "POST", + `http://music.163.com/weapi/share/friends/resource`, + data, + { crypto: "weapi", cookie: query.cookie, proxy: query.proxy } + ); +};