-
Notifications
You must be signed in to change notification settings - Fork 1
/
bizwechat-image.html
57 lines (49 loc) · 1.44 KB
/
bizwechat-image.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<script type="text/javascript">
RED.nodes.registerType('bizwechat-image', {
category: '企业微信',
color: '#7ac6cb',
paletteLabel: '上传图片',
label () {
return this.name || '上传图片'
},
defaults: {
name: {
value: ''
},
bizwechat: {
value: '',
type: 'bizwechat-configurator'
}
},
inputs: 1,
outputs: 1,
icon: 'white-globe.png',
})
</script>
<script type="text/x-red" data-template-name="bizwechat-image">
<div class="form-row">
<label for="node-input-bizwechat"><i class="icon-tag"></i>配置</label>
<input type="text" id="node-input-bizwechat">
</div>
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i>名称</label>
<input type="text" id="node-input-name">
</div>
<p>注意,图片文件大小应在 5B -- 2MB 字节之间</p>
</script>
<script type="text/x-red" data-help-name="bizwechat-image">
<p>上传图片到企业微信</p>
<p>每月最多可上传3000张图片,每天最多可上传1000张图片</p>
<h3>输入</h3>
<p>需要图片文件的二进制数据流,可通过内置的read file节点输出获得</p>
<dl class="message-properties">
<dt>payload
<span class="property-type">string</span>
</dt>
<dd>图片文件的二进制数据流</dd>
<dt>filename
<span class="property-type">string</span>
</dt>
<dd>文件名</dd>
</dl>
</script>