From 680fcc06f42ccca5427dff317e0370a3e969bc1b Mon Sep 17 00:00:00 2001 From: innerpeacez <innerpeace.zhai@gmail.com> Date: Thu, 13 Mar 2025 09:20:01 +0800 Subject: [PATCH] remove yzjType field --- server/notification-providers/yzj.js | 2 +- src/components/notifications/YZJ.vue | 6 ------ src/lang/en.json | 4 +--- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/server/notification-providers/yzj.js b/server/notification-providers/yzj.js index ea222dde3..5cfe30ba7 100644 --- a/server/notification-providers/yzj.js +++ b/server/notification-providers/yzj.js @@ -24,7 +24,7 @@ class YZJ extends NotificationProvider { const params = { content: msg }; - const url = `${notification.yzjWebHookUrl}?yzjtype=${notification.yzjType}&yzjtoken=${notification.yzjToken}`; + const url = `${notification.yzjWebHookUrl}?yzjtype=0&yzjtoken=${notification.yzjToken}`; const result = await axios.post(url, params, config); if (!result.data?.success) { diff --git a/src/components/notifications/YZJ.vue b/src/components/notifications/YZJ.vue index f108fbfad..63bc4c530 100644 --- a/src/components/notifications/YZJ.vue +++ b/src/components/notifications/YZJ.vue @@ -6,12 +6,6 @@ <a href="https://www.yunzhijia.com/opendocs/docs.html#/tutorial/index/robot" target="_blank">{{ $t("here") }}</a> </i18n-t> </div> - <div class="mb-3"> - <label for="yzjType" class="form-label">{{ $t("YZJ Robot Type") }}<span style="color: red;"><sup>*</sup></span></label> - <select id="yzjType" v-model="$parent.notification.yzjType" class="form-control" required> - <option :value="0">{{ $t("YZJ General Robot") }}</option> - </select> - </div> <div class="mb-3"> <label for="yzjToken" class="form-label">{{ $t("YZJ Robot Token") }}<span style="color: red;"><sup>*</sup></span></label> <HiddenInput id="yzjToken" v-model="$parent.notification.yzjToken" :required="true" autocomplete="new-password"></HiddenInput> diff --git a/src/lang/en.json b/src/lang/en.json index 111e70919..64958cdc6 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -1053,7 +1053,5 @@ "SendGrid API Key": "SendGrid API Key", "Separate multiple email addresses with commas": "Separate multiple email addresses with commas", "YZJ Webhook URL": "YZJ Webhook URL", - "YZJ Robot Type": "YZJ Robot type", - "YZJ Robot Token": "YZJ Robot token", - "YZJ General Robot": "YZJ General Robot" + "YZJ Robot Token": "YZJ Robot token" }