remove yzjType field

pull/5686/head
innerpeacez 2025-03-13 09:20:01 +08:00
parent bc88c03e22
commit 680fcc06f4
3 changed files with 2 additions and 10 deletions

View File

@ -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) {

View File

@ -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>

View File

@ -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"
}