This commit is contained in:
Mr Chen
2024-10-19 23:19:15 +08:00
parent e1014a72bd
commit b6f87e16ac
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -290,6 +290,9 @@ def getBlackList():
content = "\n".join(conf)
return mw.returnJson(True, 'ok', content)
def setBlackIp():
return ''
if __name__ == "__main__":
func = sys.argv[1]
if func == 'status':
@@ -320,5 +323,7 @@ if __name__ == "__main__":
print(readConfigTpl())
elif func == 'get_black_list':
print(getBlackList())
elif func == 'set_black_ip':
print(setBlackIp())
else:
print('error')
+2 -1
View File
@@ -83,7 +83,8 @@ function f2bBanIp(){
editor.focus();
f2bPost('get_black_list', '', {}, function(data){
console.log(data);
var rdata = $.parseJSON(data.data);
$("#textBody").text(rdata.data);
})
}