|
|
@@ -46,8 +46,8 @@
|
|
|
<label class="form-label col-3 col-form-label">添加节点通知</label>
|
|
|
<div class="col">
|
|
|
<select id="telegram_add_node" class="col form-select" value="{$settings['telegram_add_node']}">
|
|
|
- <option value="0" {if $settings['telegram_add_node'] == false}selected{/if}>关闭</option>
|
|
|
- <option value="1" {if $settings['telegram_add_node'] == true}selected{/if}>开启</option>
|
|
|
+ <option value="0" {if $settings['telegram_add_node'] === false}selected{/if}>关闭</option>
|
|
|
+ <option value="1" {if $settings['telegram_add_node'] === true}selected{/if}>开启</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -61,8 +61,8 @@
|
|
|
<label class="form-label col-3 col-form-label">修改节点通知</label>
|
|
|
<div class="col">
|
|
|
<select id="telegram_update_node" class="col form-select" value="{$settings['telegram_update_node']}">
|
|
|
- <option value="0" {if $settings['telegram_update_node'] == false}selected{/if}>关闭</option>
|
|
|
- <option value="1" {if $settings['telegram_update_node'] == true}selected{/if}>开启</option>
|
|
|
+ <option value="0" {if $settings['telegram_update_node'] === false}selected{/if}>关闭</option>
|
|
|
+ <option value="1" {if $settings['telegram_update_node'] === true}selected{/if}>开启</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -76,8 +76,8 @@
|
|
|
<label class="form-label col-3 col-form-label">删除节点通知</label>
|
|
|
<div class="col">
|
|
|
<select id="telegram_delete_node" class="col form-select" value="{$settings['telegram_delete_node']}">
|
|
|
- <option value="0" {if $settings['telegram_delete_node'] == false}selected{/if}>关闭</option>
|
|
|
- <option value="1" {if $settings['telegram_delete_node'] == true}selected{/if}>开启</option>
|
|
|
+ <option value="0" {if $settings['telegram_delete_node'] === false}selected{/if}>关闭</option>
|
|
|
+ <option value="1" {if $settings['telegram_delete_node'] === true}selected{/if}>开启</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -91,8 +91,8 @@
|
|
|
<label class="form-label col-3 col-form-label">节点被墙通知</label>
|
|
|
<div class="col">
|
|
|
<select id="telegram_node_gfwed" class="col form-select" value="{$settings['telegram_node_gfwed']}">
|
|
|
- <option value="0" {if $settings['telegram_node_gfwed'] == false}selected{/if}>关闭</option>
|
|
|
- <option value="1" {if $settings['telegram_node_gfwed'] == true}selected{/if}>开启</option>
|
|
|
+ <option value="0" {if $settings['telegram_node_gfwed'] === false}selected{/if}>关闭</option>
|
|
|
+ <option value="1" {if $settings['telegram_node_gfwed'] === true}selected{/if}>开启</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -106,8 +106,8 @@
|
|
|
<label class="form-label col-3 col-form-label">节点被墙恢复通知</label>
|
|
|
<div class="col">
|
|
|
<select id="telegram_node_ungfwed" class="col form-select" value="{$settings['telegram_node_ungfwed']}">
|
|
|
- <option value="0" {if $settings['telegram_node_ungfwed'] == false}selected{/if}>关闭</option>
|
|
|
- <option value="1" {if $settings['telegram_node_ungfwed'] == true}selected{/if}>开启</option>
|
|
|
+ <option value="0" {if $settings['telegram_node_ungfwed'] === false}selected{/if}>关闭</option>
|
|
|
+ <option value="1" {if $settings['telegram_node_ungfwed'] === true}selected{/if}>开启</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -121,8 +121,8 @@
|
|
|
<label class="form-label col-3 col-form-label">节点离线通知</label>
|
|
|
<div class="col">
|
|
|
<select id="telegram_node_offline" class="col form-select" value="{$settings['telegram_node_offline']}">
|
|
|
- <option value="0" {if $settings['telegram_node_offline'] == false}selected{/if}>关闭</option>
|
|
|
- <option value="1" {if $settings['telegram_node_offline'] == true}selected{/if}>开启</option>
|
|
|
+ <option value="0" {if $settings['telegram_node_offline'] === false}selected{/if}>关闭</option>
|
|
|
+ <option value="1" {if $settings['telegram_node_offline'] === true}selected{/if}>开启</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -136,8 +136,8 @@
|
|
|
<label class="form-label col-3 col-form-label">节点上线通知</label>
|
|
|
<div class="col">
|
|
|
<select id="telegram_node_online" class="col form-select" value="{$settings['telegram_node_online']}">
|
|
|
- <option value="0" {if $settings['telegram_node_online'] == false}selected{/if}>关闭</option>
|
|
|
- <option value="1" {if $settings['telegram_node_online'] == true}selected{/if}>开启</option>
|
|
|
+ <option value="0" {if $settings['telegram_node_online'] === false}selected{/if}>关闭</option>
|
|
|
+ <option value="1" {if $settings['telegram_node_online'] === true}selected{/if}>开启</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -151,8 +151,8 @@
|
|
|
<label class="form-label col-3 col-form-label">每日任务通知</label>
|
|
|
<div class="col">
|
|
|
<select id="telegram_daily_job" class="col form-select" value="{$settings['telegram_daily_job']}">
|
|
|
- <option value="0" {if $settings['telegram_daily_job'] == false}selected{/if}>关闭</option>
|
|
|
- <option value="1" {if $settings['telegram_daily_job'] == true}selected{/if}>开启</option>
|
|
|
+ <option value="0" {if $settings['telegram_daily_job'] === false}selected{/if}>关闭</option>
|
|
|
+ <option value="1" {if $settings['telegram_daily_job'] === true}selected{/if}>开启</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -166,8 +166,8 @@
|
|
|
<label class="form-label col-3 col-form-label">系统运行状况通知</label>
|
|
|
<div class="col">
|
|
|
<select id="telegram_diary" class="col form-select" value="{$settings['telegram_diary']}">
|
|
|
- <option value="0" {if $settings['telegram_diary'] == false}selected{/if}>关闭</option>
|
|
|
- <option value="1" {if $settings['telegram_diary'] == true}selected{/if}>开启</option>
|
|
|
+ <option value="0" {if $settings['telegram_diary'] === false}selected{/if}>关闭</option>
|
|
|
+ <option value="1" {if $settings['telegram_diary'] === true}selected{/if}>开启</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -185,8 +185,8 @@
|
|
|
<label class="form-label col-3 col-form-label">解绑 Telegram 账户后自动踢出群组</label>
|
|
|
<div class="col">
|
|
|
<select id="telegram_unbind_kick_member" class="col form-select" value="{$settings['telegram_unbind_kick_member']}">
|
|
|
- <option value="0" {if $settings['telegram_unbind_kick_member'] == false}selected{/if}>关闭</option>
|
|
|
- <option value="1" {if $settings['telegram_unbind_kick_member'] == true}selected{/if}>开启</option>
|
|
|
+ <option value="0" {if $settings['telegram_unbind_kick_member'] === false}selected{/if}>关闭</option>
|
|
|
+ <option value="1" {if $settings['telegram_unbind_kick_member'] === true}selected{/if}>开启</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -194,8 +194,8 @@
|
|
|
<label class="form-label col-3 col-form-label">仅允许已绑定 Telegram 账户的用户加入群组</label>
|
|
|
<div class="col">
|
|
|
<select id="telegram_group_bound_user" class="col form-select" value="{$settings['telegram_group_bound_user']}">
|
|
|
- <option value="0" {if $settings['telegram_group_bound_user'] == false}selected{/if}>关闭</option>
|
|
|
- <option value="1" {if $settings['telegram_group_bound_user'] == true}selected{/if}>开启</option>
|
|
|
+ <option value="0" {if $settings['telegram_group_bound_user'] === false}selected{/if}>关闭</option>
|
|
|
+ <option value="1" {if $settings['telegram_group_bound_user'] === true}selected{/if}>开启</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -203,8 +203,8 @@
|
|
|
<label class="form-label col-3 col-form-label">启用 Telegram 机器人显示用户群组链接</label>
|
|
|
<div class="col">
|
|
|
<select id="telegram_show_group_link" class="col form-select" value="{$settings['telegram_show_group_link']}">
|
|
|
- <option value="0" {if $settings['telegram_show_group_link'] == false}selected{/if}>关闭</option>
|
|
|
- <option value="1" {if $settings['telegram_show_group_link'] == true}selected{/if}>开启</option>
|
|
|
+ <option value="0" {if $settings['telegram_show_group_link'] === false}selected{/if}>关闭</option>
|
|
|
+ <option value="1" {if $settings['telegram_show_group_link'] === true}selected{/if}>开启</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -218,8 +218,8 @@
|
|
|
<label class="form-label col-3 col-form-label">Telegram 机器人发送欢迎消息</label>
|
|
|
<div class="col">
|
|
|
<select id="enable_welcome_message" class="col form-select" value="{$settings['enable_welcome_message']}">
|
|
|
- <option value="0" {if $settings['enable_welcome_message'] == false}selected{/if}>关闭</option>
|
|
|
- <option value="1" {if $settings['enable_welcome_message'] == true}selected{/if}>开启</option>
|
|
|
+ <option value="0" {if $settings['enable_welcome_message'] === false}selected{/if}>关闭</option>
|
|
|
+ <option value="1" {if $settings['enable_welcome_message'] === true}selected{/if}>开启</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -227,8 +227,8 @@
|
|
|
<label class="form-label col-3 col-form-label">Telegram 机器人在群组中不回应</label>
|
|
|
<div class="col">
|
|
|
<select id="telegram_group_quiet" class="col form-select" value="{$settings['telegram_group_quiet']}">
|
|
|
- <option value="0" {if $settings['telegram_group_quiet'] == false}selected{/if}>关闭</option>
|
|
|
- <option value="1" {if $settings['telegram_group_quiet'] == true}selected{/if}>开启</option>
|
|
|
+ <option value="0" {if $settings['telegram_group_quiet'] === false}selected{/if}>关闭</option>
|
|
|
+ <option value="1" {if $settings['telegram_group_quiet'] === true}selected{/if}>开启</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -236,8 +236,8 @@
|
|
|
<label class="form-label col-3 col-form-label">允许 Bot 加入下方配置之外的群组</label>
|
|
|
<div class="col">
|
|
|
<select id="allow_to_join_new_groups" class="col form-select" value="{$settings['allow_to_join_new_groups']}">
|
|
|
- <option value="0" {if $settings['allow_to_join_new_groups'] == false}selected{/if}>关闭</option>
|
|
|
- <option value="1" {if $settings['allow_to_join_new_groups'] == true}selected{/if}>开启</option>
|
|
|
+ <option value="0" {if $settings['allow_to_join_new_groups'] === false}selected{/if}>关闭</option>
|
|
|
+ <option value="1" {if $settings['allow_to_join_new_groups'] === true}selected{/if}>开启</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -257,8 +257,8 @@
|
|
|
<label class="form-label col-3 col-form-label">非管理员操作管理员功能是否回复</label>
|
|
|
<div class="col">
|
|
|
<select id="enable_not_admin_reply" class="col form-select" value="{$settings['enable_not_admin_reply']}">
|
|
|
- <option value="0" {if $settings['enable_not_admin_reply'] == false}selected{/if}>关闭</option>
|
|
|
- <option value="1" {if $settings['enable_not_admin_reply'] == true}selected{/if}>开启</option>
|
|
|
+ <option value="0" {if $settings['enable_not_admin_reply'] === false}selected{/if}>关闭</option>
|
|
|
+ <option value="1" {if $settings['enable_not_admin_reply'] === true}selected{/if}>开启</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -284,8 +284,8 @@
|
|
|
<label class="form-label col-3 col-form-label">允许任意未知的命令触发 /help 的回复</label>
|
|
|
<div class="col">
|
|
|
<select id="help_any_command" class="col form-select" value="{$settings['help_any_command']}">
|
|
|
- <option value="0" {if $settings['help_any_command'] == false}selected{/if}>关闭</option>
|
|
|
- <option value="1" {if $settings['help_any_command'] == true}selected{/if}>开启</option>
|
|
|
+ <option value="0" {if $settings['help_any_command'] === false}selected{/if}>关闭</option>
|
|
|
+ <option value="1" {if $settings['help_any_command'] === true}selected{/if}>开启</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -293,8 +293,8 @@
|
|
|
<label class="form-label col-3 col-form-label">开启在群组搜寻用户信息时显示用户完整邮箱,关闭则会对邮箱中间内容打码</label>
|
|
|
<div class="col">
|
|
|
<select id="enable_user_email_group_show" class="col form-select" value="{$settings['enable_user_email_group_show']}">
|
|
|
- <option value="0" {if $settings['enable_user_email_group_show'] == false}selected{/if}>关闭</option>
|
|
|
- <option value="1" {if $settings['enable_user_email_group_show'] == true}selected{/if}>开启</option>
|
|
|
+ <option value="0" {if $settings['enable_user_email_group_show'] === false}selected{/if}>关闭</option>
|
|
|
+ <option value="1" {if $settings['enable_user_email_group_show'] === true}selected{/if}>开启</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -337,7 +337,7 @@
|
|
|
{/foreach}
|
|
|
},
|
|
|
success: function(data) {
|
|
|
- if (data.ret == 1) {
|
|
|
+ if (data.ret === 1) {
|
|
|
$('#success-message').text(data.msg);
|
|
|
$('#success-dialog').modal('show');
|
|
|
} else {
|