mirror of
https://github.com/certd/certd.git
synced 2026-04-16 14:00:51 +08:00
perf: 优化证书申请成功通知发送方式
This commit is contained in:
@@ -82,6 +82,17 @@ export class WebhookNotification extends BaseNotification {
|
||||
})
|
||||
template = '';
|
||||
|
||||
@NotificationInput({
|
||||
title: '忽略证书校验',
|
||||
value: false,
|
||||
component: {
|
||||
name: 'a-switch',
|
||||
vModel: 'checked',
|
||||
},
|
||||
required: false,
|
||||
})
|
||||
skipSslVerify: boolean;
|
||||
|
||||
replaceTemplate(target: string, body: any, urlEncode = false) {
|
||||
let bodyStr = target;
|
||||
const keys = Object.keys(body);
|
||||
@@ -143,6 +154,7 @@ export class WebhookNotification extends BaseNotification {
|
||||
...headers,
|
||||
},
|
||||
data: data,
|
||||
skipSslVerify: this.skipSslVerify,
|
||||
});
|
||||
} catch (e) {
|
||||
if (e.response?.data) {
|
||||
|
||||
Reference in New Issue
Block a user