-
Notifications
You must be signed in to change notification settings - Fork 22
/
bizwechat-configurator.html
executable file
·120 lines (117 loc) · 4.27 KB
/
bizwechat-configurator.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<script type="text/javascript">
RED.nodes.registerType('bizwechat-configurator', {
category: 'config',
label () {
return this.name || '默认企业微信配置'
},
defaults: {
name: {
value: ''
},
port: {
value: '',
required: true
},
corpid: {
value: '',
required: true
},
agentid: {
value: '',
required: true
},
corpsecret: {
value: '',
required: true
},
url: {
value: '',
required: true
},
token: {
value: '',
required: true
},
aeskey: {
value: '',
required: true
},
proxyWx: {
value: '',
},
client_id: {
value: ''
},
client_secret: {
value: ''
},
stt: {
value: ''
}
}
})
</script>
<script type="text/x-red" data-template-name="bizwechat-configurator">
<div class="form-row">
<label for="node-config-input-name"><i class="icon-tag"></i>名称</label>
<input type="text" id="node-config-input-name" placeholder="默认企业微信配置">
</div>
<div class="form-row">
<label for="node-config-input-port"><i></i>Port</label>
<input type="text" id="node-config-input-port" placeholder="本服务端口">
</div>
<div class="form-row">
<label for="node-config-input-corpid"><i></i>Corpid</label>
<input type="text" id="node-config-input-corpid" placeholder="微信企业ID">
</div>
<div class="form-row">
<label for="node-config-input-agentid"><i></i>Agentid</label>
<input type="text" id="node-config-input-agentid" placeholder="微信应用ID">
</div>
<div class="form-row">
<label for="node-config-input-corpsecret"><i></i>Secret</label>
<input type="text" id="node-config-input-corpsecret" placeholder="微信应用Secret">
</div>
<div class="form-row">
<label for="node-config-input-url"><i></i>Url</label>
<input type="text" id="node-config-input-url" placeholder="微信应用回调URL(http或https开头)">
</div>
<div class="form-row">
<label for="node-config-input-token"><i></i>Token</label>
<input type="text" id="node-config-input-token" placeholder="微信应用回调Token">
</div>
<div class="form-row">
<label for="node-config-input-aeskey"><i></i>EncAESKey</label>
<input type="text" id="node-config-input-aeskey" placeholder="微信应用回调EncodingAESKey">
</div>
<div class="form-row">
<label for="node-config-input-proxyWx"><i></i>企微代理</label>
<input type="text" id="node-config-input-proxyWx" placeholder="调用企微接口的代理服务地址,非必填">
</div>
<div class="form-row">
<label style="width: 100%; text-align: center; color: #ccc;">以下内容为开启语音转文字时选填</label>
</div>
<div class="form-row">
<label for="node-config-input-client_id"><i></i>APIKey</label>
<input type="text" id="node-config-input-client_id" placeholder="百度语音应用API Key">
</div>
<div class="form-row">
<label for="node-config-input-client_secret"><i></i>SecretKey</label>
<input type="text" id="node-config-input-client_secret" placeholder="百度语音应用Secret Key">
</div>
<div class="form-row">
<label for="node-config-input-stt"><i></i>asr 地址</label>
<input type="text" id="node-config-input-stt" placeholder="asr ip地址格式(http://ip:port/api)">
</div>
<div class="form-row">
<label style="width: 100%;text-align: right;padding-right: 34px;box-sizing: border-box;" >
<a href="https://bbs.iobroker.cn/forum.php?mod=viewthread&tid=118" target="_blank">手摸手图文教程 (ioBroker中国|智能家居)提供</a>
</label>
</div>
</script>
<script type="text/x-red" data-help-name="bizwechat-configurator">
<p>企业微信代理</p>
<p>由于企业微信变更,只有可信ip才能发送信息,造成家里网络无法直接发送信息到企微</p>
<p>基于这种情况,增加了企微代理功能,原理: 原先直接请求企微的接口信息可以通过代理服务区请求。
<a href="https://mp.weixin.qq.com/s/pEP0RUhGSij3HYtasbHZig" target="_blank">详细教程可以查看这里,也可以留言告知你需要的教程或节点。</a></p>
</script>