mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-27 14:46:06 +08:00
修改环境变量名与程序变量名一致
This commit is contained in:
parent
de08c873b0
commit
36e1f231c6
|
@ -33,18 +33,18 @@ export class GotifyNotification extends NotificationBaseInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
export class GoCqHttpBotNotification extends NotificationBaseInfo {
|
export class GoCqHttpBotNotification extends NotificationBaseInfo {
|
||||||
public goCqHttpBotUrl = '';
|
public gobotUrl = '';
|
||||||
public goCqHttpBotToken = '';
|
public gobotToken = '';
|
||||||
public goCqHttpBotQq = '';
|
public gobotQq = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
export class ServerChanNotification extends NotificationBaseInfo {
|
export class ServerChanNotification extends NotificationBaseInfo {
|
||||||
public serverChanKey = '';
|
public pushKey = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
export class PushDeerNotification extends NotificationBaseInfo {
|
export class PushDeerNotification extends NotificationBaseInfo {
|
||||||
public pushDeerKey = '';
|
public deerKey = '';
|
||||||
public pushDeerUrl = '';
|
public deerUrl = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
export class ChatNotification extends NotificationBaseInfo {
|
export class ChatNotification extends NotificationBaseInfo {
|
||||||
|
@ -63,27 +63,27 @@ export class BarkNotification extends NotificationBaseInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
export class TelegramBotNotification extends NotificationBaseInfo {
|
export class TelegramBotNotification extends NotificationBaseInfo {
|
||||||
public telegramBotToken = '';
|
public tgBotToken = '';
|
||||||
public telegramBotUserId = '';
|
public tgUserId = '';
|
||||||
public telegramBotProxyHost = '';
|
public tgProxyHost = '';
|
||||||
public telegramBotProxyPort = '';
|
public tgProxyPort = '';
|
||||||
public telegramBotProxyAuth = '';
|
public tgProxyAuth = '';
|
||||||
public telegramBotApiHost = 'https://api.telegram.org';
|
public tgApiHost = 'https://api.telegram.org';
|
||||||
}
|
}
|
||||||
|
|
||||||
export class DingtalkBotNotification extends NotificationBaseInfo {
|
export class DingtalkBotNotification extends NotificationBaseInfo {
|
||||||
public dingtalkBotToken = '';
|
public ddBotToken = '';
|
||||||
public dingtalkBotSecret = '';
|
public ddBotSecret = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
export class WeWorkBotNotification extends NotificationBaseInfo {
|
export class WeWorkBotNotification extends NotificationBaseInfo {
|
||||||
public weWorkBotKey = '';
|
public qywxKey = '';
|
||||||
public weWorkOrigin = '';
|
public qywxOrigin = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
export class WeWorkAppNotification extends NotificationBaseInfo {
|
export class WeWorkAppNotification extends NotificationBaseInfo {
|
||||||
public weWorkAppKey = '';
|
public qywxKey = '';
|
||||||
public weWorkOrigin = '';
|
public qywxOrigin = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
export class AibotkNotification extends NotificationBaseInfo {
|
export class AibotkNotification extends NotificationBaseInfo {
|
||||||
|
@ -93,7 +93,7 @@ export class AibotkNotification extends NotificationBaseInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
export class IGotNotification extends NotificationBaseInfo {
|
export class IGotNotification extends NotificationBaseInfo {
|
||||||
public iGotPushKey = '';
|
public igotPushKey = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
export class PushPlusNotification extends NotificationBaseInfo {
|
export class PushPlusNotification extends NotificationBaseInfo {
|
||||||
|
@ -108,14 +108,14 @@ export class WePlusBotNotification extends NotificationBaseInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
export class EmailNotification extends NotificationBaseInfo {
|
export class EmailNotification extends NotificationBaseInfo {
|
||||||
public emailService: string = '';
|
public smtpService: string = '';
|
||||||
public emailUser: string = '';
|
public smtpName: string = '';
|
||||||
public emailPass: string = '';
|
public smtpPassword: string = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
export class PushMeNotification extends NotificationBaseInfo {
|
export class PushMeNotification extends NotificationBaseInfo {
|
||||||
public pushMeKey: string = '';
|
public pushmeKey: string = '';
|
||||||
public pushMeUrl: string = '';
|
public pushmeUrl: string = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
export class ChronocatNotification extends NotificationBaseInfo {
|
export class ChronocatNotification extends NotificationBaseInfo {
|
||||||
|
@ -136,7 +136,7 @@ export class WebhookNotification extends NotificationBaseInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
export class LarkNotification extends NotificationBaseInfo {
|
export class LarkNotification extends NotificationBaseInfo {
|
||||||
public larkKey = '';
|
public fskey = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface NotificationInfo
|
export interface NotificationInfo
|
||||||
|
|
|
@ -130,13 +130,13 @@ export default class NotificationService {
|
||||||
}
|
}
|
||||||
|
|
||||||
private async goCqHttpBot() {
|
private async goCqHttpBot() {
|
||||||
const { goCqHttpBotQq, goCqHttpBotToken, goCqHttpBotUrl } = this.params;
|
const { gobotQq, gobotToken, gobotUrl } = this.params;
|
||||||
try {
|
try {
|
||||||
const res: any = await got
|
const res: any = await got
|
||||||
.post(`${goCqHttpBotUrl}?${goCqHttpBotQq}`, {
|
.post(`${gobotUrl}?${gobotQq}`, {
|
||||||
...this.gotOption,
|
...this.gotOption,
|
||||||
json: { message: `${this.title}\n${this.content}` },
|
json: { message: `${this.title}\n${this.content}` },
|
||||||
headers: { Authorization: 'Bearer ' + goCqHttpBotToken },
|
headers: { Authorization: 'Bearer ' + gobotToken },
|
||||||
})
|
})
|
||||||
.json();
|
.json();
|
||||||
if (res.retcode === 0) {
|
if (res.retcode === 0) {
|
||||||
|
@ -150,10 +150,10 @@ export default class NotificationService {
|
||||||
}
|
}
|
||||||
|
|
||||||
private async serverChan() {
|
private async serverChan() {
|
||||||
const { serverChanKey } = this.params;
|
const { pushKey } = this.params;
|
||||||
const url = serverChanKey.startsWith('SCT')
|
const url = pushKey.startsWith('SCT')
|
||||||
? `https://sctapi.ftqq.com/${serverChanKey}.send`
|
? `https://sctapi.ftqq.com/${pushKey}.send`
|
||||||
: `https://sc.ftqq.com/${serverChanKey}.send`;
|
: `https://sc.ftqq.com/${pushKey}.send`;
|
||||||
try {
|
try {
|
||||||
const res: any = await got
|
const res: any = await got
|
||||||
.post(url, {
|
.post(url, {
|
||||||
|
@ -173,13 +173,13 @@ export default class NotificationService {
|
||||||
}
|
}
|
||||||
|
|
||||||
private async pushDeer() {
|
private async pushDeer() {
|
||||||
const { pushDeerKey, pushDeerUrl } = this.params;
|
const { deerKey, deerUrl } = this.params;
|
||||||
const url = pushDeerUrl || `https://api2.pushdeer.com/message/push`;
|
const url = deerUrl || `https://api2.pushdeer.com/message/push`;
|
||||||
try {
|
try {
|
||||||
const res: any = await got
|
const res: any = await got
|
||||||
.post(url, {
|
.post(url, {
|
||||||
...this.gotOption,
|
...this.gotOption,
|
||||||
body: `pushkey=${pushDeerKey}&text=${encodeURIComponent(
|
body: `pushkey=${deerKey}&text=${encodeURIComponent(
|
||||||
this.title,
|
this.title,
|
||||||
)}&desp=${encodeURIComponent(this.content)}&type=markdown`,
|
)}&desp=${encodeURIComponent(this.content)}&type=markdown`,
|
||||||
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
||||||
|
@ -263,25 +263,25 @@ export default class NotificationService {
|
||||||
|
|
||||||
private async telegramBot() {
|
private async telegramBot() {
|
||||||
const {
|
const {
|
||||||
telegramBotApiHost,
|
tgApiHost,
|
||||||
telegramBotProxyAuth,
|
tgProxyAuth,
|
||||||
telegramBotProxyHost,
|
tgProxyHost,
|
||||||
telegramBotProxyPort,
|
tgProxyPort,
|
||||||
telegramBotToken,
|
tgBotToken,
|
||||||
telegramBotUserId,
|
tgUserId,
|
||||||
} = this.params;
|
} = this.params;
|
||||||
const authStr = telegramBotProxyAuth ? `${telegramBotProxyAuth}@` : '';
|
const authStr = tgProxyAuth ? `${tgProxyAuth}@` : '';
|
||||||
const url = `${
|
const url = `${
|
||||||
telegramBotApiHost ? telegramBotApiHost : 'https://api.telegram.org'
|
tgApiHost ? tgApiHost : 'https://api.telegram.org'
|
||||||
}/bot${telegramBotToken}/sendMessage`;
|
}/bot${tgBotToken}/sendMessage`;
|
||||||
let agent;
|
let agent;
|
||||||
if (telegramBotProxyHost && telegramBotProxyPort) {
|
if (tgProxyHost && tgProxyPort) {
|
||||||
const options: any = {
|
const options: any = {
|
||||||
keepAlive: true,
|
keepAlive: true,
|
||||||
keepAliveMsecs: 1000,
|
keepAliveMsecs: 1000,
|
||||||
maxSockets: 256,
|
maxSockets: 256,
|
||||||
maxFreeSockets: 256,
|
maxFreeSockets: 256,
|
||||||
proxy: `http://${authStr}${telegramBotProxyHost}:${telegramBotProxyPort}`,
|
proxy: `http://${authStr}${tgProxyHost}:${tgProxyPort}`,
|
||||||
};
|
};
|
||||||
const httpAgent = new HttpProxyAgent(options);
|
const httpAgent = new HttpProxyAgent(options);
|
||||||
const httpsAgent = new HttpsProxyAgent(options);
|
const httpsAgent = new HttpsProxyAgent(options);
|
||||||
|
@ -294,7 +294,7 @@ export default class NotificationService {
|
||||||
const res: any = await got
|
const res: any = await got
|
||||||
.post(url, {
|
.post(url, {
|
||||||
...this.gotOption,
|
...this.gotOption,
|
||||||
body: `chat_id=${telegramBotUserId}&text=${this.title}\n\n${this.content}&disable_web_page_preview=true`,
|
body: `chat_id=${tgUserId}&text=${this.title}\n\n${this.content}&disable_web_page_preview=true`,
|
||||||
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
||||||
agent,
|
agent,
|
||||||
})
|
})
|
||||||
|
@ -310,16 +310,16 @@ export default class NotificationService {
|
||||||
}
|
}
|
||||||
|
|
||||||
private async dingtalkBot() {
|
private async dingtalkBot() {
|
||||||
const { dingtalkBotSecret, dingtalkBotToken } = this.params;
|
const { ddBotSecret, ddBotToken } = this.params;
|
||||||
let secretParam = '';
|
let secretParam = '';
|
||||||
if (dingtalkBotSecret) {
|
if (ddBotSecret) {
|
||||||
const dateNow = Date.now();
|
const dateNow = Date.now();
|
||||||
const hmac = crypto.createHmac('sha256', dingtalkBotSecret);
|
const hmac = crypto.createHmac('sha256', ddBotSecret);
|
||||||
hmac.update(`${dateNow}\n${dingtalkBotSecret}`);
|
hmac.update(`${dateNow}\n${ddBotSecret}`);
|
||||||
const result = encodeURIComponent(hmac.digest('base64'));
|
const result = encodeURIComponent(hmac.digest('base64'));
|
||||||
secretParam = `×tamp=${dateNow}&sign=${result}`;
|
secretParam = `×tamp=${dateNow}&sign=${result}`;
|
||||||
}
|
}
|
||||||
const url = `https://oapi.dingtalk.com/robot/send?access_token=${dingtalkBotToken}${secretParam}`;
|
const url = `https://oapi.dingtalk.com/robot/send?access_token=${ddBotToken}${secretParam}`;
|
||||||
try {
|
try {
|
||||||
const res: any = await got
|
const res: any = await got
|
||||||
.post(url, {
|
.post(url, {
|
||||||
|
@ -343,9 +343,9 @@ export default class NotificationService {
|
||||||
}
|
}
|
||||||
|
|
||||||
private async weWorkBot() {
|
private async weWorkBot() {
|
||||||
const { weWorkBotKey, weWorkOrigin = 'https://qyapi.weixin.qq.com' } =
|
const { qywxKey, qywxOrigin = 'https://qyapi.weixin.qq.com' } =
|
||||||
this.params;
|
this.params;
|
||||||
const url = `${weWorkOrigin}/cgi-bin/webhook/send?key=${weWorkBotKey}`;
|
const url = `${qywxOrigin}/cgi-bin/webhook/send?key=${qywxKey}`;
|
||||||
try {
|
try {
|
||||||
const res: any = await got
|
const res: any = await got
|
||||||
.post(url, {
|
.post(url, {
|
||||||
|
@ -369,11 +369,11 @@ export default class NotificationService {
|
||||||
}
|
}
|
||||||
|
|
||||||
private async weWorkApp() {
|
private async weWorkApp() {
|
||||||
const { weWorkAppKey, weWorkOrigin = 'https://qyapi.weixin.qq.com' } =
|
const { qywxKey, qywxOrigin = 'https://qyapi.weixin.qq.com' } =
|
||||||
this.params;
|
this.params;
|
||||||
const [corpid, corpsecret, touser, agentid, thumb_media_id = '1'] =
|
const [corpid, corpsecret, touser, agentid, thumb_media_id = '1'] =
|
||||||
weWorkAppKey.split(',');
|
qywxKey.split(',');
|
||||||
const url = `${weWorkOrigin}/cgi-bin/gettoken`;
|
const url = `${qywxOrigin}/cgi-bin/gettoken`;
|
||||||
const tokenRes: any = await got
|
const tokenRes: any = await got
|
||||||
.post(url, {
|
.post(url, {
|
||||||
...this.gotOption,
|
...this.gotOption,
|
||||||
|
@ -425,7 +425,7 @@ export default class NotificationService {
|
||||||
try {
|
try {
|
||||||
const res: any = await got
|
const res: any = await got
|
||||||
.post(
|
.post(
|
||||||
`${weWorkOrigin}/cgi-bin/message/send?access_token=${tokenRes.access_token}`,
|
`${qywxOrigin}/cgi-bin/message/send?access_token=${tokenRes.access_token}`,
|
||||||
{
|
{
|
||||||
...this.gotOption,
|
...this.gotOption,
|
||||||
json: {
|
json: {
|
||||||
|
@ -497,8 +497,8 @@ export default class NotificationService {
|
||||||
}
|
}
|
||||||
|
|
||||||
private async iGot() {
|
private async iGot() {
|
||||||
const { iGotPushKey } = this.params;
|
const { igotPushKey } = this.params;
|
||||||
const url = `https://push.hellyw.com/${iGotPushKey.toLowerCase()}`;
|
const url = `https://push.hellyw.com/${igotPushKey.toLowerCase()}`;
|
||||||
try {
|
try {
|
||||||
const res: any = await got
|
const res: any = await got
|
||||||
.post(url, {
|
.post(url, {
|
||||||
|
@ -581,15 +581,15 @@ export default class NotificationService {
|
||||||
}
|
}
|
||||||
|
|
||||||
private async lark() {
|
private async lark() {
|
||||||
let { larkKey } = this.params;
|
let { fskey } = this.params;
|
||||||
|
|
||||||
if (!larkKey.startsWith('http')) {
|
if (!fskey.startsWith('http')) {
|
||||||
larkKey = `https://open.feishu.cn/open-apis/bot/v2/hook/${larkKey}`;
|
fskey = `https://open.feishu.cn/open-apis/bot/v2/hook/${fskey}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const res: any = await got
|
const res: any = await got
|
||||||
.post(larkKey, {
|
.post(fskey, {
|
||||||
...this.gotOption,
|
...this.gotOption,
|
||||||
json: {
|
json: {
|
||||||
msg_type: 'text',
|
msg_type: 'text',
|
||||||
|
@ -609,20 +609,20 @@ export default class NotificationService {
|
||||||
}
|
}
|
||||||
|
|
||||||
private async email() {
|
private async email() {
|
||||||
const { emailPass, emailService, emailUser } = this.params;
|
const { smtpPassword, smtpService, smtpName } = this.params;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const transporter = nodemailer.createTransport({
|
const transporter = nodemailer.createTransport({
|
||||||
service: emailService,
|
service: smtpService,
|
||||||
auth: {
|
auth: {
|
||||||
user: emailUser,
|
user: smtpName,
|
||||||
pass: emailPass,
|
pass: smtpPassword,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const info = await transporter.sendMail({
|
const info = await transporter.sendMail({
|
||||||
from: `"青龙快讯" <${emailUser}>`,
|
from: `"青龙快讯" <${smtpName}>`,
|
||||||
to: `${emailUser}`,
|
to: `${smtpName}`,
|
||||||
subject: `${this.title}`,
|
subject: `${this.title}`,
|
||||||
html: `${this.content.replace(/\n/g, '<br/>')}`,
|
html: `${this.content.replace(/\n/g, '<br/>')}`,
|
||||||
});
|
});
|
||||||
|
@ -640,12 +640,12 @@ export default class NotificationService {
|
||||||
}
|
}
|
||||||
|
|
||||||
private async pushMe() {
|
private async pushMe() {
|
||||||
const { pushMeKey, pushMeUrl } = this.params;
|
const { pushmeKey, pushmeUrl } = this.params;
|
||||||
try {
|
try {
|
||||||
const res: any = await got.post(pushMeUrl || 'https://push.i-i.me/', {
|
const res: any = await got.post(pushmeUrl || 'https://push.i-i.me/', {
|
||||||
...this.gotOption,
|
...this.gotOption,
|
||||||
json: {
|
json: {
|
||||||
push_key: pushMeKey,
|
push_key: pushmeKey,
|
||||||
title: this.title,
|
title: this.title,
|
||||||
content: this.content,
|
content: this.content,
|
||||||
},
|
},
|
||||||
|
|
|
@ -128,15 +128,15 @@ export default {
|
||||||
],
|
],
|
||||||
goCqHttpBot: [
|
goCqHttpBot: [
|
||||||
{
|
{
|
||||||
label: 'goCqHttpBotUrl',
|
label: 'gobotUrl',
|
||||||
tip: intl.get(
|
tip: intl.get(
|
||||||
'推送到个人QQ: http://127.0.0.1/send_private_msg,群:http://127.0.0.1/send_group_msg',
|
'推送到个人QQ: http://127.0.0.1/send_private_msg,群:http://127.0.0.1/send_group_msg',
|
||||||
),
|
),
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{ label: 'goCqHttpBotToken', tip: intl.get('访问密钥'), required: true },
|
{ label: 'gobotToken', tip: intl.get('访问密钥'), required: true },
|
||||||
{
|
{
|
||||||
label: 'goCqHttpBotQq',
|
label: 'gobotQq',
|
||||||
tip: intl.get(
|
tip: intl.get(
|
||||||
'如果GOBOT_URL设置 /send_private_msg 则需要填入 user_id=个人QQ 相反如果是 /send_group_msg 则需要填入 group_id=QQ群',
|
'如果GOBOT_URL设置 /send_private_msg 则需要填入 user_id=个人QQ 相反如果是 /send_group_msg 则需要填入 group_id=QQ群',
|
||||||
),
|
),
|
||||||
|
@ -145,19 +145,19 @@ export default {
|
||||||
],
|
],
|
||||||
serverChan: [
|
serverChan: [
|
||||||
{
|
{
|
||||||
label: 'serverChanKey',
|
label: 'pushKey',
|
||||||
tip: intl.get('Server酱SENDKEY'),
|
tip: intl.get('Server酱SENDKEY'),
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
pushDeer: [
|
pushDeer: [
|
||||||
{
|
{
|
||||||
label: 'pushDeerKey',
|
label: 'deerKey',
|
||||||
tip: intl.get('PushDeer的Key,https://github.com/easychen/pushdeer'),
|
tip: intl.get('PushDeer的Key,https://github.com/easychen/pushdeer'),
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'pushDeerUrl',
|
label: 'deerUrl',
|
||||||
tip: intl.get(
|
tip: intl.get(
|
||||||
'PushDeer的自架API endpoint,默认是 https://api2.pushdeer.com/message/push',
|
'PushDeer的自架API endpoint,默认是 https://api2.pushdeer.com/message/push',
|
||||||
),
|
),
|
||||||
|
@ -198,40 +198,40 @@ export default {
|
||||||
],
|
],
|
||||||
telegramBot: [
|
telegramBot: [
|
||||||
{
|
{
|
||||||
label: 'telegramBotToken',
|
label: 'tgBotToken',
|
||||||
tip: intl.get(
|
tip: intl.get(
|
||||||
'telegram机器人的token,例如:1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw',
|
'telegram机器人的token,例如:1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw',
|
||||||
),
|
),
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'telegramBotUserId',
|
label: 'tgUserId',
|
||||||
tip: intl.get('telegram用户的id,例如:129xxx206'),
|
tip: intl.get('telegram用户的id,例如:129xxx206'),
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{ label: 'telegramBotProxyHost', tip: intl.get('代理IP') },
|
{ label: 'tgProxyHost', tip: intl.get('代理IP') },
|
||||||
{ label: 'telegramBotProxyPort', tip: intl.get('代理端口') },
|
{ label: 'tgProxyPort', tip: intl.get('代理端口') },
|
||||||
{
|
{
|
||||||
label: 'telegramBotProxyAuth',
|
label: 'tgProxyAuth',
|
||||||
tip: intl.get(
|
tip: intl.get(
|
||||||
'telegram代理配置认证参数,用户名与密码用英文冒号连接 user:password',
|
'telegram代理配置认证参数,用户名与密码用英文冒号连接 user:password',
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'telegramBotApiHost',
|
label: 'tgApiHost',
|
||||||
tip: intl.get('telegram api自建的反向代理地址,默认tg官方api'),
|
tip: intl.get('telegram api自建的反向代理地址,默认tg官方api'),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
dingtalkBot: [
|
dingtalkBot: [
|
||||||
{
|
{
|
||||||
label: 'dingtalkBotToken',
|
label: 'ddBotToken',
|
||||||
tip: intl.get(
|
tip: intl.get(
|
||||||
'钉钉机器人webhook token,例如:5a544165465465645d0f31dca676e7bd07415asdasd',
|
'钉钉机器人webhook token,例如:5a544165465465645d0f31dca676e7bd07415asdasd',
|
||||||
),
|
),
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'dingtalkBotSecret',
|
label: 'ddBotSecret',
|
||||||
tip: intl.get(
|
tip: intl.get(
|
||||||
'密钥,机器人安全设置页面,加签一栏下面显示的SEC开头的字符串',
|
'密钥,机器人安全设置页面,加签一栏下面显示的SEC开头的字符串',
|
||||||
),
|
),
|
||||||
|
@ -239,27 +239,27 @@ export default {
|
||||||
],
|
],
|
||||||
weWorkBot: [
|
weWorkBot: [
|
||||||
{
|
{
|
||||||
label: 'weWorkBotKey',
|
label: 'qywxKey',
|
||||||
tip: intl.get(
|
tip: intl.get(
|
||||||
'企业微信机器人的webhook(详见文档 https://work.weixin.qq.com/api/doc/90000/90136/91770),例如:693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa',
|
'企业微信机器人的webhook(详见文档 https://work.weixin.qq.com/api/doc/90000/90136/91770),例如:693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa',
|
||||||
),
|
),
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'weWorkOrigin',
|
label: 'qywxOrigin',
|
||||||
tip: intl.get('企业微信代理地址'),
|
tip: intl.get('企业微信代理地址'),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
weWorkApp: [
|
weWorkApp: [
|
||||||
{
|
{
|
||||||
label: 'weWorkAppKey',
|
label: 'qywxKey',
|
||||||
tip: intl.get(
|
tip: intl.get(
|
||||||
'corpid、corpsecret、touser(注:多个成员ID使用|隔开)、agentid、消息类型(选填,不填默认文本消息类型) 注意用,号隔开(英文输入法的逗号),例如:wwcfrs,B-76WERQ,qinglong,1000001,2COat',
|
'corpid、corpsecret、touser(注:多个成员ID使用|隔开)、agentid、消息类型(选填,不填默认文本消息类型) 注意用,号隔开(英文输入法的逗号),例如:wwcfrs,B-76WERQ,qinglong,1000001,2COat',
|
||||||
),
|
),
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'weWorkOrigin',
|
label: 'qywxOrigin',
|
||||||
tip: intl.get('企业微信代理地址'),
|
tip: intl.get('企业微信代理地址'),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -291,7 +291,7 @@ export default {
|
||||||
],
|
],
|
||||||
iGot: [
|
iGot: [
|
||||||
{
|
{
|
||||||
label: 'iGotPushKey',
|
label: 'igotPushKey',
|
||||||
tip: intl.get(
|
tip: intl.get(
|
||||||
'iGot的信息推送key,例如:https://push.hellyw.com/XXXXXXXX',
|
'iGot的信息推送key,例如:https://push.hellyw.com/XXXXXXXX',
|
||||||
),
|
),
|
||||||
|
@ -336,7 +336,7 @@ export default {
|
||||||
],
|
],
|
||||||
lark: [
|
lark: [
|
||||||
{
|
{
|
||||||
label: 'larkKey',
|
label: 'fskey',
|
||||||
tip: intl.get(
|
tip: intl.get(
|
||||||
'飞书群组机器人:https://www.feishu.cn/hc/zh-CN/articles/360024984973',
|
'飞书群组机器人:https://www.feishu.cn/hc/zh-CN/articles/360024984973',
|
||||||
),
|
),
|
||||||
|
@ -345,23 +345,23 @@ export default {
|
||||||
],
|
],
|
||||||
email: [
|
email: [
|
||||||
{
|
{
|
||||||
label: 'emailService',
|
label: 'smtpService',
|
||||||
tip: intl.get(
|
tip: intl.get(
|
||||||
'邮箱服务名称,比如126、163、Gmail、QQ等,支持列表https://github.com/nodemailer/nodemailer/blob/master/lib/well-known/services.json',
|
'邮箱服务名称,比如126、163、Gmail、QQ等,支持列表https://github.com/nodemailer/nodemailer/blob/master/lib/well-known/services.json',
|
||||||
),
|
),
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{ label: 'emailUser', tip: intl.get('邮箱地址'), required: true },
|
{ label: 'smtpName', tip: intl.get('邮箱地址'), required: true },
|
||||||
{ label: 'emailPass', tip: intl.get('SMTP 登录密码,也可能为特殊口令,视具体邮件服务商说明而定'), required: true },
|
{ label: 'smtpPassword', tip: intl.get('SMTP 登录密码,也可能为特殊口令,视具体邮件服务商说明而定'), required: true },
|
||||||
],
|
],
|
||||||
pushMe: [
|
pushMe: [
|
||||||
{
|
{
|
||||||
label: 'pushMeKey',
|
label: 'pushmeKey',
|
||||||
tip: intl.get('PushMe的Key,https://push.i-i.me/'),
|
tip: intl.get('PushMe的Key,https://push.i-i.me/'),
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'pushMeUrl',
|
label: 'pushmeUrl',
|
||||||
tip: intl.get('自建的PushMeServer消息接口地址,例如:http://127.0.0.1:3010,不填则使用官方消息接口'),
|
tip: intl.get('自建的PushMeServer消息接口地址,例如:http://127.0.0.1:3010,不填则使用官方消息接口'),
|
||||||
required: false,
|
required: false,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user