mirror of https://github.com/louislam/uptime-kuma
remove yzjType field
parent
bc88c03e22
commit
680fcc06f4
|
@ -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) {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue