新版自动化,生成二维码模块上线!配合发给图片模块嘎嘎好用!

大圣
大圣

创作者俱乐部成员

不多说!先上图

多维表目前不能上传图片,用url代替

企业微信机器人是这样的

接下来教程正式开始!

  • 先来看看脚本 不会设置脚本的看看我上一个企业微信发送图片模块

let id = Context.argv.id
let sheetId = Context.argv.sheetId
let wboxid = Context.argv.wboxid
let 列 = Context.argv.内容
sheetId = + sheetId
let 触发行文本 = Application.Record.GetRecord({ SheetId: sheetId, RecordId: id[0]})
let 内容 = 触发行文本['fields'][列]
let token_post = HTTP.post("https://fxl.ink/portal/oauth/token?client_id=817f5b62d7a248f3825c5853dd43dac8&client_secret=319430ec05c44f2f834a71f793ee6254&grant_type=client_credentials",//wboxidlet token_post = HTTP.post("https://fxl.ink/portal/oauth/token?client_id=817f5b62d7a248f3825c5853dd43dac8&client_secret=319430ec05c44f2f834a71f793ee6254&grant_type=client_credentials",//wboxid是机器人webhook
{})
let token_json = token_post.json()
let token = token_json ["access_token"]
let url_post = HTTP.post("https://k8s.qrcode.icu/render?a=render&pid=ab1cff34-578c-49f6-abb3-8c85f0de689f&pcid=3fb7bd4d-c575-4965-9df3-cacf242964db",//wboxid是机器人webhook
{"内容":内容},
{headers: {"Authorization": "Bearer "+token}}
)
let url_json = url_post.json()
let url = url_json["content"][0]["url"]
if(wboxid){
let body = HTTP.get(url).binary()
let hash = Crypto.createHash("md5")
let imgBase =body.toString("base64")
hash.update(body)

HTTP.post(wboxid,//wboxid是机器人webhook
{
msgtype: 'image',
image: {
base64: imgBase,
md5: hash.digest("hex"),
}})
}
return {"url":url }
  • 话不多说直接看来第二部设置自动化!

你可能会问我怎么教程的文字越来越少了

那是你没有看我之前的教程😡!!

湖北省
浏览 237
收藏
6
分享
6 +1
3
+1
全部评论 3
 
幸福春
我和大佬的区别,我能想到,大佬是能做到膜拜大佬
· 山东省
回复
 
清华学弟任泽岩
清华学弟任泽岩

创作者俱乐部成员

大佬牛逼!膜拜
· 中国
1
回复
 
『峰格』
黑夜无论怎样悠长,白昼总会到来
· 山东省
1
回复