-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
105 lines (105 loc) · 2.4 KB
/
config.js
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
require("dotenv").config();
module.exports = {
kintone: {
domain: "https://wechatkintone.cybozu.cn",
apiToken: [
process.env.KINTONE_JIABAN,
process.env.KINTONE_QINGJIA,
process.env.KINTONE_DIANJIAN,
process.env.KINTONE_SCHEDULE,
process.env.KINTONE_USER,
],
kintoneMapWechat: {
appId: 4,
fields: {
$id: "$id",
wechat_id: "wechat_id",
name: "name",
},
},
schedule: {
appId: 13,
fields: {
$id: "$id",
date: "date",
wechat_id: "wechat_id",
name: "name",
weizhi: "weizhi",
shebei: "shebei",
detail: "detail",
},
},
dianjian: {
appId: 9,
fields: {
$id: "$id",
date: "date",
user_name: "user_name",
wechat_id: "wechat_id",
step1: "step1",
step2: "step2",
step3: "step3",
step4: "step4",
status: "status",
},
},
approve: {
jiaban: {
appId: 11,
fields: {
$id: "$id",
wechat_id: "wechat_id",
status: "status",
sp_no: "sp_no",
begin: "begin",
end: "end",
duration: "duration",
note: "note",
},
},
qingjia: {
appId: 10,
fields: {
$id: "$id",
wechat_id: "wechat_id",
status: "status",
sp_no: "sp_no",
type: "type",
begin: "begin",
end: "end",
duration: "duration",
note: "note",
file: "file",
},
},
},
},
dianjian: {
baseUrl: "https://qyapi.weixin.qq.com/cgi-bin",
token: process.env.DIANJIAN_TOKEN,
encodingAESKey: process.env.DIANJIAN_ENCODEINGAESKEY,
agentID: process.env.DIANJIAN_AGENTID,
corpid: process.env.DIANJIAN_CORPID,
secret: process.env.DIANJIAN_SECRET,
redis_token_key: "wechat_token",
},
wechatApprove: {
baseUrl: "https://qyapi.weixin.qq.com/cgi-bin",
token: process.env.APPROVE_TOKEN,
encodingAESKey: process.env.APPROVE_ENCODEINGAESKEY,
agentID: process.env.APPROVE_AGENTID,
corpid: process.env.APPROVE_CORPID,
secret: process.env.APPROVE_SECRET,
redis_token_key: "approve_token",
},
redis: {
expire: 6000,
},
access_ip: [
"103.229.219.32",
"103.229.219.41",
"52.32.46.167",
"35.155.158.164",
"103.79.12.129",
],
};