Smail/server/hooks/spam_block/static/index.html
Jinnrry e6a56b199d
v2.6.2 (#177)
1、修复邮件插入失败
2、插件支持设置页面
3、修复pop3邮箱拉取权限判断
4、修复非管理员账户的附件权限判断

Co-authored-by: jinnrry <i@jinnrry.com>
2024-07-27 20:47:42 +08:00

54 lines
1.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html>
<header>
<script src="/api/plugin/settings/SpamBlock/jquery.js"></script>
<script>
$(function () {
$("#submit").click(function () {
let data = {};
let value = $('#form').serializeArray();
$.each(value, function (index, item) {
data[item.name] = item.value;
});
let jsonData = JSON.stringify(data);
console.log(jsonData);
$.post("/api/plugin/settings/SpamBlock/save", jsonData, function (data) {
alert(data)
})
})
})
</script>
</header>
<body>
<div>
<form id="form" action="/api/plugin/settings/SpamBlock/save" method="post">
<div>
<label for="url"> 模型API接口地址: </label>
<input id="url" style="width: 600px;" name="url" value="%s"
placeholder="http://localhost:8501/v1/models/emotion_model:predict">
</div>
<div>
<label for="timeout"> 超时时间: </label>
<input id="timeout" style="width: 600px;" name="timeout" value="%d" placeholder="单位毫秒">
</div>
<div>
<label for="threshold"> 识别阈值: </label>
<input id="threshold" name="threshold" type="number" value="%f" style="width: 600px;"
step=".01" max="100" min="0" placeholder="识别阈值,值越低过滤越严格,越容易误判">
</div>
<input id="submit" type="button" value="Submit"/>
</form>
</div>
</body>
</html>